aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/submit/lib.py
diff options
context:
space:
mode:
authorRodney Ewing <ewing.rj@gmail.com>2013-08-02 11:40:41 -0700
committerRodney Ewing <ewing.rj@gmail.com>2013-08-16 15:30:14 -0700
commit9a2c66ca9ef763fa68dc09a483c02fe2ee02d78f (patch)
treefde0cac99182ba200d2274978dd425d6e4eb33b7 /mediagoblin/submit/lib.py
parent273c79513d82b03b99035dcfa47e839c61322483 (diff)
downloadmediagoblin-9a2c66ca9ef763fa68dc09a483c02fe2ee02d78f.tar.lz
mediagoblin-9a2c66ca9ef763fa68dc09a483c02fe2ee02d78f.tar.xz
mediagoblin-9a2c66ca9ef763fa68dc09a483c02fe2ee02d78f.zip
added image reprocessing
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 7e85696b..3619a329 100644
--- a/mediagoblin/submit/lib.py
+++ b/mediagoblin/submit/lib.py
@@ -76,17 +76,19 @@ def prepare_queue_task(app, entry, filename):
return queue_file
-def run_process_media(entry, feed_url=None):
+def run_process_media(entry, feed_url=None, reprocess_info=None):
"""Process the media asynchronously
:param entry: MediaEntry() instance to be processed.
:param feed_url: A string indicating the feed_url that the PuSH servers
should be notified of. This will be sth like: `request.urlgen(
'mediagoblin.user_pages.atom_feed',qualified=True,
- user=request.user.username)`"""
+ user=request.user.username)`
+ :param reprocess: A dict containing all of the necessary reprocessing
+ info for the given media_type"""
try:
process_media.apply_async(
- [entry.id, feed_url], {},
+ [entry.id, feed_url, reprocess_info], {},
task_id=entry.queued_task_id)
except BaseException as exc:
# The purpose of this section is because when running in "lazy"