Celery 2.0 Documentationinclude: # sqlite (filename) CELERY_RESULT_DBURI = "sqlite:///celerydb.sqlite" # mysql CELERY_RESULT_DBURI = "mysql://scott:tiger@localhost/foo" # postgresql CELERY_RESULT_DBURI = "postgresql://s {"echo": True} Example configuration CELERY_RESULT_BACKEND = "database" CELERY_RESULT_DBURI = "mysql://user:password@host/dbname" AMQP backend settings CELERY_RESULT_EXCHANGE Name of the exchange INSTALLED_APPS: INSTALLED_APPS = ("ghettoq", ) 3. Verify you database settings: DATABASE_ENGINE = "mysql" DATABASE_NAME = "mydb" DATABASE_USER = "myuser" DATABASE_PASSWORD = "secret" The above is just an0 码力 | 284 页 | 332.71 KB | 1 年前3
Celery 1.0 Documentationexecute: $ celeryinit Example configuration CELERY_RESULT_BACKEND = "database" DATABASE_ENGINE = "mysql" DATABASE_USER = "myusername" DATABASE_PASSWORD = "mypassword" DATABASE_NAME = "mydatabase" DATABASE_HOST INSTALLED_APPS: INSTALLED_APPS = ("ghettoq", ) 3. Verify you database settings: DATABASE_ENGINE = "mysql" DATABASE_NAME = "mydb" DATABASE_USER = "myuser" DATABASE_PASSWORD = "secret" The above is just an [http://ask.github.com/celery/userguide/remote-tasks.html]. Troubleshooting MySQL is throwing deadlock errors, what can I do? Answer: MySQL has default isolation level set to REPEATABLE-READ, if you don’t really0 码力 | 221 页 | 283.64 KB | 1 年前3
Celery 2.0 Documentationinclude: # sqlite (filename) CELERY_RESULT_DBURI = "sqlite:///celerydb.sqlite" # mysql CELERY_RESULT_DBURI = "mysql://scott:tiger@localhost/foo" # postgresql CELERY_RESULT_DBURI = "postgresql://sco {"echo": True} 3.4.1 Example configuration CELERY_RESULT_BACKEND = "database" CELERY_RESULT_DBURI = "mysql://user:password@host/dbname" 3.5 AMQP backend settings • CELERY_RESULT_EXCHANGE Name of the exchange Redis/Database as the messaging queue. 65 Celery Documentation, Release 2.0.3 (stable) DATABASE_ENGINE = "mysql" DATABASE_NAME = "mydb" DATABASE_USER = "myuser" DATABASE_PASSWORD = "secret" The above is just an0 码力 | 165 页 | 492.43 KB | 1 年前3
Celery 3.1 Documentationhtml#database-urls]: # sqlite (filename) BROKER_URL = 'sqla+sqlite:///celerydb.sqlite' # mysql BROKER_URL = 'sqla+mysql://scott:tiger@localhost/foo' # postgresql BROKER_URL = 'sqla+postgresql://scott:tig always work this way, it used to be that there was only a module- based API, and for backwards compatibility the old API is still there. Celery always creates a special app that is the “default app”, and the app instance, not the module based API. For example, the old Task base class enables many compatibility features where some may be incompatible with newer features, such as task methods: from celery0 码力 | 887 页 | 1.22 MB | 1 年前3
Celery 3.1 Documentation(filename) BROKER_URL = 'sqla+sqlite:///celerydb.sqlite' # mysql 16 Chapter 2. Contents Celery Documentation, Release 3.1.25 BROKER_URL = 'sqla+mysql://scott:tiger@localhost/foo' # postgresql BROKER_URL always work this way, it used to be that there was only a module-based API, and for backwards compatibility the old API is still there. Celery always creates a special app that is the “default app”, and the app instance, not the module based API. For example, the old Task base class enables many compatibility features where some may be incompatible with newer features, such as task methods: from celery0 码力 | 607 页 | 2.27 MB | 1 年前3
Celery 2.1 Documentationfor JSON. If you need a more expressive set of data types and need to maintain cross- language compatibility, then YAML may be a better fit than the above. See http://yaml.org/ for more information. msgpack writeable by the user running the monitor. If you want to store the events in a different database, e.g. MySQL, then you can configure the DATABASE* settings directly in your Celery config module. See http://docs include: # sqlite (filename) CELERY_RESULT_DBURI = "sqlite:///celerydb.sqlite" # mysql CELERY_RESULT_DBURI = "mysql://scott:tiger@localhost/foo" # postgresql CELERY_RESULT_DBURI = "postgresql://s0 码力 | 463 页 | 861.69 KB | 1 年前3
Celery v4.1.0 Documentationalways have applications, it used to be that there was only a module- based API, and for backwards compatibility the old API is still there until the release of Celery 5.0. Celery always creates a special app the app instance, not the module based API. For example, the old Task base class enables many compatibility features where some may be incompatible with newer features, such as task methods: from celery uses the celery.app.app_or_default() function so that everything also works in the module-based compatibility API from celery.app import app_or_default class Scheduler(object): def __init__(self, app=None):0 码力 | 1057 页 | 1.35 MB | 1 年前3
Celery v4.0.1 Documentationalways have applications, it used to be that there was only a module- based API, and for backwards compatibility the old API is still there until the release of Celery 5.0. Celery always creates a special app the app instance, not the module based API. For example, the old Task base class enables many compatibility features where some may be incompatible with newer features, such as task methods: from celery uses the celery.app.app_or_default() function so that everything also works in the module-based compatibility API from celery.app import app_or_default class Scheduler(object): def __init__(self, app=None):0 码力 | 1040 页 | 1.37 MB | 1 年前3
Celery v4.0.2 Documentationalways have applications, it used to be that there was only a module- based API, and for backwards compatibility the old API is still there until the release of Celery 5.0. Celery always creates a special app the app instance, not the module based API. For example, the old Task base class enables many compatibility features where some may be incompatible with newer features, such as task methods: from celery uses the celery.app.app_or_default() function so that everything also works in the module-based compatibility API from celery.app import app_or_default class Scheduler(object): def __init__(self, app=None):0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery 4.0 Documentationalways have applications, it used to be that there was only a module- based API, and for backwards compatibility the old API is still there until the release of Celery 5.0. Celery always creates a special app the app instance, not the module based API. For example, the old Task base class enables many compatibility features where some may be incompatible with newer features, such as task methods: from celery uses the celery.app.app_or_default() function so that everything also works in the module-based compatibility API from celery.app import app_or_default class Scheduler(object): def __init__(self, app=None):0 码力 | 1042 页 | 1.37 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













