aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/lib.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-08-11 14:34:45 -0500
committerRodney Ewing <ewing.rj@gmail.com>2013-08-16 15:30:16 -0700
commit77ea4c9bd1e8372fb7206596ca5125738033ced5 (patch)
treecfef03b64d9c86f65d75375eda36175aab6b681c /mediagoblin/submit/lib.py
parentd1e9913b71a6f3b7bb41f5eee1051093b92fcd8a (diff)
downloadmediagoblin-77ea4c9bd1e8372fb7206596ca5125738033ced5.tar.lz
mediagoblin-77ea4c9bd1e8372fb7206596ca5125738033ced5.tar.xz
mediagoblin-77ea4c9bd1e8372fb7206596ca5125738033ced5.zip
Updating to the point where we can allllmost run with the new reprocessing code
This commit sponsored by Odin Hørthe Omdal. Thank you!
Diffstat (limited to 'mediagoblin/submit/lib.py')
-rw-r--r--mediagoblin/submit/lib.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/mediagoblin/submit/lib.py b/mediagoblin/submit/lib.py
index 3619a329..ad37203d 100644
--- a/mediagoblin/submit/lib.py
+++ b/mediagoblin/submit/lib.py
@@ -76,7 +76,8 @@ def prepare_queue_task(app, entry, filename):
return queue_file
-def run_process_media(entry, feed_url=None, reprocess_info=None):
+def run_process_media(entry, feed_url=None,
+ reprocess_action="inital", reprocess_info=None):
"""Process the media asynchronously
:param entry: MediaEntry() instance to be processed.
@@ -84,11 +85,12 @@ def run_process_media(entry, feed_url=None, reprocess_info=None):
should be notified of. This will be sth like: `request.urlgen(
'mediagoblin.user_pages.atom_feed',qualified=True,
user=request.user.username)`
- :param reprocess: A dict containing all of the necessary reprocessing
+ :param reprocess_action: What particular action should be run.
+ :param reprocess_info: A dict containing all of the necessary reprocessing
info for the given media_type"""
try:
process_media.apply_async(
- [entry.id, feed_url, reprocess_info], {},
+ [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"