Add workflow method to ProcessingManager
authorvijeth-aradhya <vijthaaa@gmail.com>
Sun, 4 Jun 2017 18:15:18 +0000 (23:45 +0530)
committervijeth-aradhya <vijthaaa@gmail.com>
Sun, 4 Jun 2017 18:18:08 +0000 (23:48 +0530)
This method just raises NotImplementedError if the specific
media processing manager does not have a workflow method.

mediagoblin/processing/__init__.py

index 29345227d66c10e51954ba4f8d7451731ebc2322..7e05b242efcc6d20a508a31928135f7972ab244d 100644 (file)
@@ -257,6 +257,13 @@ class ProcessingManager(object):
 
         return processor
 
+    def workflow(self):
+        """
+        Returns the Celery command needed to proceed with media processing
+        *This method has to be implemented in all media types*
+        """
+        raise NotImplementedError
+
 
 def request_from_args(args, which_args):
     """