Przeglądaj źródła

celery shell: app is now also available in globals

Ask Solem 11 lat temu
rodzic
commit
1e0daec18f
1 zmienionych plików z 2 dodań i 1 usunięć
  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,