diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-08-21 12:39:31 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2013-08-21 12:39:38 -0500 |
commit | f6497ce572c5dedb553a474023478625c5062a93 (patch) | |
tree | b74a161659c1fb9e776ff921b9e5e9fcedf15cd6 /mediagoblin/submit/lib.py | |
parent | c62d174437445565b55b220396e7571a323a159c (diff) | |
parent | 9de4fab437558d101e801a02240ca3772c590ace (diff) | |
download | mediagoblin-f6497ce572c5dedb553a474023478625c5062a93.tar.lz mediagoblin-f6497ce572c5dedb553a474023478625c5062a93.tar.xz mediagoblin-f6497ce572c5dedb553a474023478625c5062a93.zip |
Merge remote-tracking branch 'refs/remotes/rodney757/reprocessing'
Conflicts:
mediagoblin/processing/task.py
mediagoblin/submit/lib.py
Diffstat (limited to 'mediagoblin/submit/lib.py')
-rw-r--r-- | mediagoblin/submit/lib.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mediagoblin/submit/lib.py b/mediagoblin/submit/lib.py index 33687a72..1bbf2cb8 100644 --- a/mediagoblin/submit/lib.py +++ b/mediagoblin/submit/lib.py @@ -76,17 +76,21 @@ 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_action="initial", 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_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: ProcessMedia().apply_async( - [entry.id, feed_url], {}, + [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" |