Celery 2.3 Documentationlimits can be 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 Figure 2: Worker bindings. Go to Routing Tasks. Celery takes advantage of AMQPs flexible routing model. Tasks can be routed to specific servers, or a cluster of servers by binding workers to different then it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.2 Documentationlimits can be 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 Figure 2: Worker bindings. Go to Routing Tasks. Celery takes advantage of AMQPs flexible routing model. Tasks can be routed to specific servers, or a cluster of servers by binding workers to different then it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery 2.2 Documentationlimits can be 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 Figure 2: Worker bindings. Go to Routing Tasks. Celery takes advantage of AMQPs flexible routing model. Tasks can be routed to specific servers, or a cluster of servers by binding workers to different then it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 2.5 Documentationlimits can be 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 Figure 2: Worker bindings. Go to Routing Tasks. Celery takes advantage of AMQPs flexible routing model. Tasks can be routed to specific servers, or a cluster of servers by binding workers to different then it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery 2.3 Documentationlimits can be 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 Figure 2: Worker bindings. Go to Routing Tasks. Celery takes advantage of AMQPs flexible routing model. Tasks can be routed to specific servers, or a cluster of servers by binding workers to different then it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch0 码力 | 530 页 | 900.64 KB | 1 年前3
Celery 2.5 Documentationlimits can be 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 Figure 2: Worker bindings. Go to Routing Tasks. Celery takes advantage of AMQPs flexible routing model. Tasks can be routed to specific servers, or a cluster of servers by binding workers to different then it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch0 码力 | 647 页 | 1011.88 KB | 1 年前3
Celery 2.4 Documentationlimits can be 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 Figure 2: Worker bindings. Go to Routing Tasks. Celery takes advantage of AMQPs flexible routing model. Tasks can be routed to specific servers, or a cluster of servers by binding workers to different then it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch0 码力 | 543 页 | 957.42 KB | 1 年前3
Celery 2.4 Documentationlimits can be 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 Figure 2: Worker bindings. Go to Routing Tasks. Celery takes advantage of AMQPs flexible routing model. Tasks can be routed to specific servers, or a cluster of servers by binding workers to different then it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch0 码力 | 395 页 | 1.54 MB | 1 年前3
Celery 3.1 Documentationthen it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch an article and a task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @app.task def expand_abbreviations(article): enabling ATOMIC_REQUESTS on the database connection will bring back the transaction-per-request model and the race condition along with it. In this case, the simple solution is using the @transaction0 码力 | 887 页 | 1.22 MB | 1 年前3
Celery 3.1 Documentationthen it must be the tasks responsibility to assert that, not the callers. Another gotcha is Django model objects. They shouldn’t be passed on as arguments to tasks. It’s almost always better to re-fetch an article and a task that automatically expands some abbreviations in it: class Article(models.Model): title = models.CharField() body = models.TextField() @app.task def expand_abbreviations(article): enabling ATOMIC_REQUESTS on the database connection will bring back the transaction-per-request model and the race condition along with it. In this case, the simple solution is using the @transaction0 码力 | 607 页 | 2.27 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













