tasks.py 文件源码

python
阅读 19 收藏 0 点赞 0 评论 0

项目:videofront 作者: openfun 项目源码 文件源码
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})
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号