Celery 2.0 Documentationdefaults can still be set as task attributes. Routers A router is a class that decides the routing options for a task. All you need to define a new router is to create a class with a route_for_task method: "topic", "routing_key": "video.compress"} You install router classes by adding it to the CELERY_ROUTES setting: CELERY_ROUTES = (MyRouter, ) Router classes can also be added by name: CELERY_ROUTES = ("myapp ("myapp.routers.MyRouter", ) For simple task name -> route mappings like the router example above, you can simply drop a dict into CELERY_ROUTES to get the same result: CELERY_ROUTES = ({"myapp.tasks0 码力 | 284 页 | 332.71 KB | 1 年前3
Celery 2.0 Documentationdefaults can still be set as task attributes. Routers A router is a class that decides the routing options for a task. All you need to define a new router is to create a class with a route_for_task method: "topic", "routing_key": "video.compress"} You install router classes by adding it to the CELERY_ROUTES setting: CELERY_ROUTES = (MyRouter, ) Router classes can also be added by name: CELERY_ROUTES = ("myapp ("myapp.routers.MyRouter", ) For simple task name -> route mappings like the router example above, you can simply drop a dict into CELERY_ROUTES to get the same result: CELERY_ROUTES = ({"myapp.tasks0 码力 | 165 页 | 492.43 KB | 1 年前3
Celery 2.2 Documentationuses a default transaction isolation level that is not suitable for polling tables for changes. In MySQL the default transaction isolation level is REPEATABLE-READ, which means the transaction will not see defaults can still be set as task attributes. Routers A router is a class that decides the routing options for a task. All you need to define a new router is to create a class with a route_for_task method: "routing_key": "video.compress"} You install router classes by adding them to the CELERY_ROUTES setting: CELERY_ROUTES = (MyRouter(), ) Router classes can also be added by name: CELERY_ROUTES =0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 2.3 Documentationuses a default transaction isolation level that is not suitable for polling tables for changes. In MySQL the default transaction isolation level is REPEATABLE-READ, which means the transaction will not see defaults can still be set as task attributes. Routers A router is a class that decides the routing options for a task. All you need to define a new router is to create a class with a route_for_task method: "topic", "routing_key": "video.compress"} You install router classes by adding them to the CELERY_ROUTES setting: CELERY_ROUTES = (MyRouter(), ) Router classes can also be added by name: CELERY_ROUTES =0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.3 Documentationuses a default transaction isolation level that is not suitable for polling tables for changes. In MySQL the default transaction isolation level is REPEATABLE-READ, which means the transaction will not see defaults can still be set as task attributes. Routers A router is a class that decides the routing options for a task. All you need to define a new router is to create a class with a route_for_task method: "routing_key": "video.compress"} You install router classes by adding them to the CELERY_ROUTES setting: CELERY_ROUTES = (MyRouter(), ) Router classes can also be added by name: CELERY_ROUTES =0 码力 | 530 页 | 900.64 KB | 1 年前3
Celery 2.4 Documentationhtml#database-urls], examples: # sqlite (filename) BROKER_HOST = "sqlite:///celerydb.sqlite" # mysql BROKER_HOST = "mysql://scott:tiger@localhost/foo" # postgresql BROKER_HOST = "postgresql://scott:tiger@localhost/mydatabase" INSTALLED_APPS: INSTALLED_APPS = ("djkombu", ) 3. Verify your database settings: DATABASE_ENGINE = "mysql" DATABASE_NAME = "mydb" DATABASE_USER = "myuser" DATABASE_PASSWORD = "secret" The above is just an use a default transaction isolation level that is not suitable for polling tables for changes. In MySQL the default transaction isolation level is REPEATABLE-READ, which means the transaction will not see0 码力 | 543 页 | 957.42 KB | 1 年前3
Celery 2.4 DocumentationDocumentation, Release 2.4.7 # sqlite (filename) BROKER_HOST = "sqlite:///celerydb.sqlite" # mysql BROKER_HOST = "mysql://scott:tiger@localhost/foo" # postgresql BROKER_HOST = "postgresql://scott:tiger@localhost/mydatabase" INSTALLED_APPS: INSTALLED_APPS = ("djkombu", ) 3. Verify your database settings: DATABASE_ENGINE = "mysql" DATABASE_NAME = "mydb" DATABASE_USER = "myuser" DATABASE_PASSWORD = "secret" The above is just an use a default transaction isolation level that is not suitable for polling tables for changes. In MySQL the default transaction isolation level is REPEATABLE-READ, which means the transaction will not see0 码力 | 395 页 | 1.54 MB | 1 年前3
Celery 2.2 Documentationuses a default transaction isolation level that is not suitable for polling tables for changes. In MySQL the default transaction isolation level is REPEATABLE-READ, which means the transaction will not see attributes. Routers A router is a class that decides the routing options for a task. 54 Chapter 2. User Guide Celery Documentation, Release 2.2.10 All you need to define a new router is to create a class "topic", "routing_key": "video.compress"} You install router classes by adding them to the CELERY_ROUTES setting: CELERY_ROUTES = (MyRouter(), ) Router classes can also be added by name: CELERY_ROUTES =0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery 2.1 Documentationdefaults can still be set as task attributes. Routers A router is a class that decides the routing options for a task. All you need to define a new router is to create a class with a route_for_task method: "routing_key": "video.compress"} You install router classes by adding them to the CELERY_ROUTES setting: CELERY_ROUTES = (MyRouter, ) Router classes can also be added by name: CELERY_ROUTES = = ("myapp.routers.MyRouter", ) For simple task name -> route mappings like the router example above, you can simply drop a dict into CELERY_ROUTES to get the same behavior: CELERY_ROUTES = ({"myapp.tasks0 码力 | 463 页 | 861.69 KB | 1 年前3
Celery 2.5 Documentationhtml#database-urls]‘s: # sqlite (filename) BROKER_URL = "sqla+sqlite:///celerydb.sqlite" # mysql BROKER_URL = "sqla+mysql://scott:tiger@localhost/foo" # postgresql BROKER_URL = "sqla+postgresql://scott:ti use a default transaction isolation level that is not suitable for polling tables for changes. In MySQL the default transaction isolation level is REPEATABLE-READ, which means the transaction will not see defaults can still be set as task attributes. Routers A router is a class that decides the routing options for a task. All you need to define a new router is to create a class with a route_for_task method:0 码力 | 647 页 | 1011.88 KB | 1 年前3
共 294 条
- 1
- 2
- 3
- 4
- 5
- 6
- 30













