Explorar o código

celery shell: app is now also available in globals

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
1e0daec18f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      celery/bin/celery.py

+ 2 - 1
celery/bin/celery.py

@@ -542,7 +542,8 @@ class shell(Command):  # pragma: no cover
         import celery
         import celery.task.base
         self.app.loader.import_default_modules()
-        self.locals = {'celery': self.app,
+        self.locals = {'app': self.app,
+                       'celery': self.app,
                        'Task': celery.Task,
                        'chord': celery.chord,
                        'group': celery.group,