Celery v4.0.0 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import, unicode_literals itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2106 页 | 2.23 MB | 1 年前3
Celery 3.0 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import, unicode_literals itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2110 页 | 2.23 MB | 1 年前3
Celery v5.0.0 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2309 页 | 2.13 MB | 1 年前3
Celery v5.0.1 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2313 页 | 2.13 MB | 1 年前3
Celery v5.0.2 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2313 页 | 2.14 MB | 1 年前3
Celery v5.0.5 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from celery import Celery app = Celery('proj', itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 2315 页 | 2.14 MB | 1 年前3
Celery 3.1 DocumentationOptimization • What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import from celery import itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorator does not actually create the tasks app = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function so0 码力 | 607 页 | 2.27 MB | 1 年前3
Celery 3.1 DocumentationOptimization What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py proj/celery.py from __future__ import absolute_import from celery itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorator does not actually create the tasks = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function0 码力 | 887 页 | 1.22 MB | 1 年前3
Celery v4.1.0 DocumentationOptimization • What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py 2.2. Getting Started 25 Celery Documentation, Release 4.1.0 proj/celery itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point app = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function so0 码力 | 714 页 | 2.63 MB | 1 年前3
Celery 4.0 DocumentationOptimization • What to do now? Using Celery in your Application Our Project Project layout: proj/__init__.py /celery.py /tasks.py 2.2. Getting Started 25 Celery Documentation, Release 4.0.2 proj/celery itself as the current app (but not if the set_as_current argument was disabled) 4. Call the app.on_init() callback (does nothing by default). The app.task() decorators don’t create the tasks at the point app = current_app Instead it should take the app as an argument: class Scheduler(object): def __init__(self, app): self.app = app Internally Celery uses the celery.app.app_or_default() function so0 码力 | 707 页 | 2.63 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













