Merge remote-tracking branch 'refs/remotes/rodney757/reprocessing'
authorChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 21 Aug 2013 17:39:31 +0000 (12:39 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Wed, 21 Aug 2013 17:39:38 +0000 (12:39 -0500)
Conflicts:
mediagoblin/processing/task.py
mediagoblin/submit/lib.py

1  2 
mediagoblin/processing/__init__.py
mediagoblin/processing/task.py
mediagoblin/submit/lib.py

Simple merge
index 05cac844aa0ca0e7ccda4813f49bfb6039d6d3e6,df44dd7ac0bdfffa07d015996b585cc41edfda99..7f68348566b5897b68d23c0c4a8b634c08b07edd
@@@ -18,14 -18,12 +18,13 @@@ import loggin
  import urllib
  import urllib2
  
 -from celery import registry, task
 +import celery
 +from celery.registry import tasks
  
  from mediagoblin import mg_globals as mgg
- from mediagoblin.db.models import MediaEntry
- from mediagoblin.processing import (mark_entry_failed, BaseProcessingFail,
-                                     ProcessingState)
+ from . import mark_entry_failed, BaseProcessingFail
  from mediagoblin.tools.processing import json_processing_callback
+ from mediagoblin.processing import get_entry_and_processing_manager
  
  _log = logging.getLogger(__name__)
  logging.basicConfig()
index 33687a72e1405f7ea09eae0262d3d8975130788d,1a45e44796767b8cc4b281b5376fcf3cdbff3a9e..1bbf2cb8ef013fe846e1cb841c7f5c58ed443df7
@@@ -83,10 -84,13 +84,13 @@@ def run_process_media(entry, feed_url=N
      :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:
 -        process_media.apply_async(
 +        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"