aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/lib.py
diff options
context:
space:
mode:
authorvijeth-aradhya <vijthaaa@gmail.com>2017-06-17 00:53:39 +0530
committervijeth-aradhya <vijthaaa@gmail.com>2017-06-17 00:53:39 +0530
commit33d5ac6c4de44aa8d98a8cf759c79351f5a59885 (patch)
treebd739a2ec6ded3c078b133ffb8728dfaf2f3d20f /mediagoblin/submit/lib.py
parent5b91098ca7084d4d420302eacf795d8d142429f9 (diff)
downloadmediagoblin-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.py6
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