Celery 2.0 Documentation
traffic. Rate limits can be set for each task type, or globally for all. Routing Using AMQP you can route tasks arbitrarily to different workers. Remote- control You can rate limit and delete (revoke) tasks addition, it also uses the task_id keyword argument to use the same task id, and delivery_info to route the retried task to the same destination. Using a custom retry delay When a task is to be retried meout=3) 2.2.5 Routing options Celery uses the AMQP routing mechanisms to route tasks to different workers. You can route tasks using the following entities: exchange, queue and routing key. Messages0 码力 | 165 页 | 492.43 KB | 1 年前3Celery 2.0 Documentation
traffic. Rate limits can be set for each task type, or globally for all. Routing Using AMQP you can route tasks arbitrarily to different workers. Remote-control You can rate limit and delete (revoke) tasks addition, it also uses the task_id keyword argument to use the same task id, and delivery_info to route the retried task to the same destination. Using a custom retry delay When a task is to be retried get_publisher(connect_timeout=3) Routing options Celery uses the AMQP routing mechanisms to route tasks to different workers. You can route tasks using the following entities: exchange, queue and routing key. Messages0 码力 | 284 页 | 332.71 KB | 1 年前3Celery 2.1 Documentation
traffic. Rate limits can be set for each task type, or globally for all. Routing Using AMQP you can route tasks arbitrarily to different workers. Remote-control You can rate limit and delete (revoke) tasks addition, it also uses the task_id keyword argument to use the same task id, and delivery_info to route the retried task to the same destination. Using a custom retry delay When a task is to be retried add.get_publisher(connect_timeout=3) Routing options Celery uses the AMQP routing mechanisms to route tasks to different workers. Messages (tasks) are sent to exchanges, a queue binds to an exchange0 码力 | 463 页 | 861.69 KB | 1 年前3Celery 2.1 Documentation
traffic. Rate limits can be set for each task type, or globally for all. Routing Using AMQP you can route tasks arbitrarily to different workers. Remote- control You can rate limit and delete (revoke) tasks addition, it also uses the task_id keyword argument to use the same task id, and delivery_info to route the retried task to the same destination. Using a custom retry delay When a task is to be retried get_publisher(connect_timeout=3) 2.3.6 Routing options Celery uses the AMQP routing mechanisms to route tasks to different workers. Messages (tasks) are sent to exchanges, a queue binds to an exchange0 码力 | 285 页 | 1.19 MB | 1 年前3Celery 2.3 Documentation
set for each task type, or globally for all. Routing Using AMQP’s flexible routing model you can route tasks to different workers, or select different message topologies, by configuration or even at runtime Release 2.3.5 try: return self.users[username] == password except KeyError: return False And you route every request to the same process, then it will keep state between requests. This can also be useful get_publisher(connect_timeout=3) 2.3.6 Routing options Celery uses the AMQP routing mechanisms to route tasks to different workers. Messages (tasks) are sent to exchanges, a queue binds to an exchange0 码力 | 334 页 | 1.25 MB | 1 年前3Celery 2.2 Documentation
set for each task type, or globally for all. Routing Using AMQP’s flexible routing model you can route tasks to different workers, or select different message topologies, by configuration or even at runtime add.get_publisher(connect_timeout=3) Routing options Celery uses the AMQP routing mechanisms to route tasks to different workers. Messages (tasks) are sent to exchanges, a queue binds to an exchange use this configuration: CELERY_ROUTES = {"feed.tasks.import_feed": {"queue": "feeds"}} With this route enabled import feed tasks will be routed to the “feeds” queue, while all other tasks will be routed0 码力 | 505 页 | 878.66 KB | 1 年前3Celery 2.3 Documentation
set for each task type, or globally for all. Routing Using AMQP’s flexible routing model you can route tasks to different workers, or select different message topologies, by configuration or even at runtime return self.users[username] == password except KeyError: return False And you route every request to the same process, then it will keep state between requests. This can also be useful add.get_publisher(connect_timeout=3) Routing options Celery uses the AMQP routing mechanisms to route tasks to different workers. Messages (tasks) are sent to exchanges, a queue binds to an exchange0 码力 | 530 页 | 900.64 KB | 1 年前3Celery 2.2 Documentation
set for each task type, or globally for all. Routing Using AMQP’s flexible routing model you can route tasks to different workers, or select different message topologies, by configuration or even at runtime get_publisher(connect_timeout=3) 2.3.6 Routing options Celery uses the AMQP routing mechanisms to route tasks to different workers. Messages (tasks) are sent to exchanges, a queue binds to an exchange use this configuration: CELERY_ROUTES = {"feed.tasks.import_feed": {"queue": "feeds"}} With this route enabled import feed tasks will be routed to the “feeds” queue, while all other tasks will be routed0 码力 | 314 页 | 1.26 MB | 1 年前3Celery v4.1.0 Documentation
see Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: 2.2. Getting Started 23 Celery Documentation consume tasks from. The worker can be told to consume from several queues at once, and this is used to route messages to specific workers as a means for Quality of Service, separation of concerns, and prioritization supports simple routing where messages are sent to named queues. The task_routes setting enables you to route tasks by name and keep everything centralized in one location: app.conf.update( task_routes = {0 码力 | 714 页 | 2.63 MB | 1 年前3Celery v4.1.0 Documentation
see Configuration and defaults. To demonstrate the power of configuration files, this is how you’d route a misbehaving task to a dedicated queue: celeryconfig.py: task_routes = { 'tasks.add': 'low-priority' consume tasks from. The worker can be told to consume from several queues at once, and this is used to route messages to specific workers as a means for Quality of Service, separation of concerns, and prioritization supports simple routing where messages are sent to named queues. The task_routes setting enables you to route tasks by name and keep everything centralized in one location: app.conf.update( task_routes =0 码力 | 1057 页 | 1.35 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6