Celery 2.1 DocumentationAsyncResult: >>> result = add.delay(4, 4) >>> result.ready() # returns True if the task has finished processing. False >>> result.result # task is not ready, so no return value yet. None >>> result.get() # can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message needs to be sent Concurrency has a whole section dedicated to the topic of task granularity. Data locality The worker processing the task should be as close to the data as possible. The best would be to have a copy in memory0 码力 | 285 页 | 1.19 MB | 1 年前3
Celery 2.1 DocumentationAsyncResult: >>> result = add.delay(4, 4) >>> result.ready() # returns True if the task has finished processing. False >>> result.result # task is not ready, so no return value yet. None >>> result.get() can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message needs to be sent 47] has a whole section dedicated to the topic of task granularity. Data locality The worker processing the task should be as close to the data as possible. The best would be to have a copy in memory0 码力 | 463 页 | 861.69 KB | 1 年前3
Celery 2.2 DocumentationAsyncResult: >>> result = add.delay(4, 4) >>> result.ready() # returns True if the task has finished processing. False >>> result.result # task is not ready, so no return value yet. None >>> result.get() # can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message needs to be sent Concurrency has a whole section dedicated to the topic of task granularity. Data locality The worker processing the task should be as close to the data as possible. The best would be to have a copy in memory0 码力 | 314 页 | 1.26 MB | 1 年前3
Celery 2.2 DocumentationAsyncResult: >>> result = add.delay(4, 4) >>> result.ready() # returns True if the task has finished processing. False >>> result.result # task is not ready, so no return value yet. None >>> result.get() can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message needs to be sent 47] has a whole section dedicated to the topic of task granularity. Data locality The worker processing the task should be as close to the data as possible. The best would be to have a copy in memory0 码力 | 505 页 | 878.66 KB | 1 年前3
Celery 2.3 Documentationwhat you can do when you have results: >>> result.ready() # returns True if the task has finished processing. False >>> result.result # task is not ready, so no return value yet. None >>> result.get() # can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message needs to be sent Concurrency has a whole section dedicated to the topic of task granularity. Data locality The worker processing the task should be as close to the data as possible. The best would be to have a copy in memory0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 2.5 Documentationwhat you can do when you have results: >>> result.ready() # returns True if the task has finished processing. False >>> result.result # task is not ready, so no return value yet. None >>> result.get() # can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message needs to be sent Concurrency has a whole section dedicated to the topic of task granularity. Data locality The worker processing the task should be as close to the data as possible. The best would be to have a copy in memory0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery 2.0 DocumentationAsyncResult: >>> result = add.delay(4, 4) >>> result.ready() # returns True if the task has finished processing. False >>> result.result # task is not ready, so no return value yet. None >>> result.get() the tasks won’t run long enough to block the worker from processing other waiting tasks. However, there’s a limit. Sending messages takes processing power and bandwidth. If your tasks are so short the overhead should reconsider your strategy. There is no universal answer here. Data locality The worker processing the task should be as close to the data as possible. The best would be to have a copy in memory0 码力 | 284 页 | 332.71 KB | 1 年前3
Celery 2.4 Documentationwhat you can do when you have results: >>> result.ready() # returns True if the task has finished processing. False >>> result.result # task is not ready, so no return value yet. None >>> result.get() can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message needs to be sent 47] has a whole section dedicated to the topic of task granularity. Data locality The worker processing the task should be as close to the data as possible. The best would be to have a copy in memory0 码力 | 543 页 | 957.42 KB | 1 年前3
Celery 2.0 DocumentationAsyncResult: >>> result = add.delay(4, 4) >>> result.ready() # returns True if the task has finished processing. False >>> result.result # task is not ready, so no return value yet. None >>> result.get() # the tasks won’t run long enough to block the worker from processing other waiting tasks. However, there’s a limit. Sending messages takes processing power and bandwidth. If your tasks are so short the overhead should reconsider your strategy. There is no universal answer here. Data locality The worker processing the task should be as close to the data as possible. The best would be to have a copy in memory0 码力 | 165 页 | 492.43 KB | 1 年前3
Celery 2.4 Documentationwhat you can do when you have results: >>> result.ready() # returns True if the task has finished processing. False >>> result.result # task is not ready, so no return value yet. None 1.3. First steps with can process more tasks in parallel and the tasks won’t run long enough to block the worker from processing other waiting tasks. However, executing a task does have overhead. A message needs to be sent Concurrency has a whole section dedicated to the topic of task granularity. Data locality The worker processing the task should be as close to the data as possible. The best would be to have a copy in memory0 码力 | 395 页 | 1.54 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













