def transcode_video_restart():
with Lock('TASK_LOCK_TRANSCODE_VIDEO_RESTART', 60) as lock:
if lock.is_acquired:
for processing_state in models.ProcessingState.objects.filter(status=models.ProcessingState.STATUS_RESTART):
send_task('transcode_video', args=(processing_state.video.public_id,), kwargs={'delete': False})
评论列表
文章目录