Celery 2.5 Documentation
org/en/latest/reference/kombu.transport.django.html#module- kombu.transport.django] to INSTALLED_APPS: INSTALLED_APPS = ("kombu.transport.django", ) 3. Sync your database schema: $ python manage.py syncdb be raised by the worker. This is also the case if using Django and using project.myapp: INSTALLED_APPS = ("project.myapp", ) The worker will have the tasks registered as “project.myapp.tasks.*”, while project directory to the Python path: import os import sys sys.path.append(os.getcwd()) INSTALLED_APPS = ("myapp", ) This makes more sense from the reusable app perspective anyway. Decorating tasks0 码力 | 647 页 | 1011.88 KB | 1 年前3Celery 2.2 Documentation
be raised by the worker. This is also the case if using Django and using project.myapp: INSTALLED_APPS = ("project.myapp", ) The worker will have the tasks registered as “project.myapp.tasks.*”, while project directory to the Python path: import os import sys sys.path.append(os.getcwd()) INSTALLED_APPS = ("myapp", ) This makes more sense from the reusable app perspective anyway. Decorating tasks CELERYD_HIJACK_ROOT_LOGGER By default any previously configured logging options will be reset, because the Celery apps “hijacks” the root logger. If you want to customize your own logging then you can disable this behavior0 码力 | 505 页 | 878.66 KB | 1 年前3Celery 2.1 Documentation
Representation of Cluster State - celery.events.state App: Worker Node - celery.apps.worker App: Periodic Task Scheduler - celery.apps.beat Base Command - celery.bin.base celeryd - celery.bin.celeryd Celery Periodic be raised by the worker. This is also the case if using Django and using project.myapp: INSTALLED_APPS = ("project.myapp", ) The worker will have the tasks registered as “project.myapp.tasks.*”, while project directory to the Python path: import os import sys sys.path.append(os.getcwd()) INSTALLED_APPS = ("myapp", ) This makes more sense from the reusable app perspective anyway. Decorating tasks0 码力 | 463 页 | 861.69 KB | 1 年前3Celery 2.3 Documentation
be raised by the worker. This is also the case if using Django and using project.myapp: INSTALLED_APPS = ("project.myapp", ) The worker will have the tasks registered as “project.myapp.tasks.*”, while project directory to the Python path: import os import sys sys.path.append(os.getcwd()) INSTALLED_APPS = ("myapp", ) This makes more sense from the reusable app perspective anyway. Decorating tasks for more information. CELERYD_LOG_COLOR Enables/disables colors in logging output by the Celery apps. By default colors are enabled if 1. the app is logging to a real terminal, and not a file. 2. the0 码力 | 530 页 | 900.64 KB | 1 年前3Celery 2.4 Documentation
. . . . . . . . . . 266 10.27 celery.apps.worker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 268 10.28 celery.apps.beat . . . . . . . . . . . . . . . . . values. 1. Set your broker transport: BROKER_URL = "django://" 2. Add djkombu to INSTALLED_APPS: INSTALLED_APPS = ("djkombu", ) 3. Verify your database settings: DATABASE_ENGINE = "mysql" DATABASE_NAME be raised by the worker. This is also the case if using Django and using project.myapp: INSTALLED_APPS = ("project.myapp", ) The worker will have the tasks registered as “project.myapp.tasks.*”, while0 码力 | 395 页 | 1.54 MB | 1 年前3Celery 2.4 Documentation
values. 1. Set your broker transport: BROKER_URL = "django://" 2. Add djkombu to INSTALLED_APPS: INSTALLED_APPS = ("djkombu", ) 3. Verify your database settings: DATABASE_ENGINE = "mysql" DATABASE_NAME be raised by the worker. This is also the case if using Django and using project.myapp: INSTALLED_APPS = ("project.myapp", ) The worker will have the tasks registered as “project.myapp.tasks.*”, while project directory to the Python path: import os import sys sys.path.append(os.getcwd()) INSTALLED_APPS = ("myapp", ) This makes more sense from the reusable app perspective anyway. Decorating tasks0 码力 | 543 页 | 957.42 KB | 1 年前3Celery v4.1.0 Documentation
accessing the app.tasks attribute. Finalizing the object will: 1. Copy tasks that must be shared between apps Tasks are shared by default, but if the shared argument to the task decorator is disabled, then the This is also the case when using Django and using project.myapp-style naming in INSTALLED_APPS: INSTALLED_APPS = ['project.myapp'] If you install the app under the name project.myapp then the tasks module install django-celery-beat 2. Add the django_celery_beat module to INSTALLED_APPS in your Django project’ settings.py: INSTALLED_APPS = ( ..., 'django_celery_beat', ) Note that there is no dash in0 码力 | 1057 页 | 1.35 MB | 1 年前3Celery v4.0.1 Documentation
accessing the app.tasks attribute. Finalizing the object will: 1. Copy tasks that must be shared between apps Tasks are shared by default, but if the shared argument to the task decorator is disabled, then the This is also the case when using Django and using project.myapp-style naming in INSTALLED_APPS: INSTALLED_APPS = ['project.myapp'] If you install the app under the name project.myapp then the tasks module django-celery-beat 2. Add the django_celery_beat module to INSTALLED_APPS in your Django project’ settings.py: INSTALLED_APPS = ( ..., 'django_celery_beat', ) Note that there is0 码力 | 1040 页 | 1.37 MB | 1 年前3Celery v4.0.2 Documentation
accessing the app.tasks attribute. Finalizing the object will: 1. Copy tasks that must be shared between apps Tasks are shared by default, but if the shared argument to the task decorator is disabled, then the This is also the case when using Django and using project.myapp-style naming in INSTALLED_APPS: INSTALLED_APPS = ['project.myapp'] If you install the app under the name project.myapp then the tasks module django-celery-beat 2. Add the django_celery_beat module to INSTALLED_APPS in your Django project’ settings.py: INSTALLED_APPS = ( ..., 'django_celery_beat', ) Note that there is0 码力 | 1042 页 | 1.37 MB | 1 年前3Celery 4.0 Documentation
accessing the app.tasks attribute. Finalizing the object will: 1. Copy tasks that must be shared between apps Tasks are shared by default, but if the shared argument to the task decorator is disabled, then the This is also the case when using Django and using project.myapp-style naming in INSTALLED_APPS: INSTALLED_APPS = ['project.myapp'] If you install the app under the name project.myapp then the tasks module django-celery-beat 2. Add the django_celery_beat module to INSTALLED_APPS in your Django project’ settings.py: INSTALLED_APPS = ( ..., 'django_celery_beat', ) Note that there is0 码力 | 1042 页 | 1.37 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6