import six
-from celery import group, chord
+from celery import group
from mediagoblin import mg_globals as mgg
from mediagoblin.processing import (
FilenameBuilder, BaseProcessingFail,
cleanup_task = processing_cleanup.signature(args=(entry.id,),
queue='default', immutable=True)
- chord(transcoding_tasks)(cleanup_task)
-
- # Not sure what to return since we are scheduling the task here itself
- return 1
+ return (transcoding_tasks, cleanup_task)
import six
+from celery import chord
+
from werkzeug.utils import secure_filename
from werkzeug.datastructures import FileStorage
ProcessMedia().apply_async(
[entry.id, feed_url, reprocess_action, reprocess_info], {},
task_id=entry.queued_task_id)
+ else:
+ chord(wf[0])(wf[1])
except BaseException as exc:
# The purpose of this section is because when running in "lazy"
# or always-eager-with-exceptions-propagated celery mode that