采用定时任务每天3 AM 香港时间清理过期的直播缓存
* 采用定时任务每天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
This commit is contained in:
parent
11e2cd3454
commit
8263b22346
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue