diff options
author | vijeth-aradhya <vijthaaa@gmail.com> | 2017-06-17 00:53:39 +0530 |
---|---|---|
committer | vijeth-aradhya <vijthaaa@gmail.com> | 2017-06-17 00:53:39 +0530 |
commit | 33d5ac6c4de44aa8d98a8cf759c79351f5a59885 (patch) | |
tree | bd739a2ec6ded3c078b133ffb8728dfaf2f3d20f /mediagoblin/submit/lib.py | |
parent | 5b91098ca7084d4d420302eacf795d8d142429f9 (diff) | |
download | mediagoblin-33d5ac6c4de44aa8d98a8cf759c79351f5a59885.tar.lz mediagoblin-33d5ac6c4de44aa8d98a8cf759c79351f5a59885.tar.xz mediagoblin-33d5ac6c4de44aa8d98a8cf759c79351f5a59885.zip |
Simple hack to handle main workflow problem
Remove redundunt workflow methods from the other media type's
processing.py.
Fixes #1
Diffstat (limited to 'mediagoblin/submit/lib.py')
-rw-r--r-- | mediagoblin/submit/lib.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mediagoblin/submit/lib.py b/mediagoblin/submit/lib.py index a6d564f1..b228dbd1 100644 --- a/mediagoblin/submit/lib.py +++ b/mediagoblin/submit/lib.py @@ -266,7 +266,11 @@ def run_process_media(entry, feed_url=None, entry, manager = get_entry_and_processing_manager(entry.id) try: - manager.workflow(entry.id, feed_url, reprocess_action, reprocess_info) + wf = manager.workflow(entry, feed_url, reprocess_action, reprocess_info) + if wf is None: + ProcessMedia().apply_async( + [entry.id, feed_url, reprocess_action, reprocess_info], {}, + task_id=entry.queued_task_id) except BaseException as exc: # The purpose of this section is because when running in "lazy" # or always-eager-with-exceptions-propagated celery mode that |