Commit 8d03a98e authored by Ilya Simonov's avatar Ilya Simonov

no start task for upload to s3 if not video id

parent 1853625e
......@@ -15,6 +15,9 @@ log = logging.getLogger('send_video_to_s3')
@app.task()
def send_video_to_s3(video_id=None):
if not video_id:
return
log.info(f'Uploading video id {video_id} to S3...')
local_video = Video.objects.get(id=video_id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment