Explorar o código

Task.type was somehow lost during merge from 3.0-devel

Ask Solem %!s(int64=13) %!d(string=hai) anos
pai
achega
d51421abcb
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      celery/app/task/__init__.py

+ 3 - 0
celery/app/task/__init__.py

@@ -288,6 +288,9 @@ class BaseTask(object):
     #: Default task expiry time.
     expires = None
 
+    #: The type of task *(no longer used)*.
+    type = "regular"
+
     from_config = (
         ("exchange_type", "CELERY_DEFAULT_EXCHANGE_TYPE"),
         ("delivery_mode", "CELERY_DEFAULT_DELIVERY_MODE"),