From 8263b223467e6bf881a1e6aa14afa64ad04be2e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=96=E5=AE=87=E8=BF=AA?= Date: Wed, 25 Jun 2025 10:15:53 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=87=E7=94=A8=E5=AE=9A=E6=97=B6=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=AF=8F=E5=A4=A93=20AM=20=E9=A6=99=E6=B8=AF=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=B8=85=E7=90=86=E8=BF=87=E6=9C=9F=E7=9A=84=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 采用定时任务每天3 AM 香港时间清理过期的直播缓存 --------- Merge request URL: https://g-ldyi2063.coding.net/p/dev/d/modalDeploy/git/merge/4870?initial=true Co-authored-by: shuohigh@gmail.com --- src/cluster/ffmpeg_apps/schedule_cleanup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cluster/ffmpeg_apps/schedule_cleanup.py b/src/cluster/ffmpeg_apps/schedule_cleanup.py index c361cbb..f3d0900 100644 --- a/src/cluster/ffmpeg_apps/schedule_cleanup.py +++ b/src/cluster/ffmpeg_apps/schedule_cleanup.py @@ -15,10 +15,9 @@ with ffmpeg_worker_image.imports(): # runs daily at 3 am (Hong Kong time) @app.function( volumes={hls_recording_mount_point: hls_recording_volume}, - schedule=modal.Cron("0 3 * * *", timezone="Asia/HongKong") + schedule=modal.Cron("0 3 * * *", timezone="Asia/Hong_Kong") ) def storage_cleanup(): - # todo: clean up storage output_dir = f"{config.modal_environment}/records/hls/" volume_output_dir = f"{hls_recording_mount_point}/{output_dir}"