Commit 41e72cae authored by Ilya Simonov's avatar Ilya Simonov

fix

parent f0b05146
...@@ -10,18 +10,14 @@ from .utils import asset_upload ...@@ -10,18 +10,14 @@ from .utils import asset_upload
from cp_video.celery import app from cp_video.celery import app
video_content_type = ContentType.objects.get_for_model(Video)
playlist_content_type = ContentType.objects.get_for_model(Playlist)
# video_content_type = 'core | Video'
# playlist_content_type = 'core | Playlist'
log = logging.getLogger('send_video_to_s3') log = logging.getLogger('send_video_to_s3')
@app.task(soft_time_limit=600) @app.task(soft_time_limit=600)
def send_video_to_s3(video_id=None): def send_video_to_s3(video_id=None):
video_content_type = ContentType.objects.get_for_model(Video)
playlist_content_type = ContentType.objects.get_for_model(Playlist)
local_video = Video.objects.get(id=video_id) local_video = Video.objects.get(id=video_id)
try: try:
......
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