Celery 2.2 Documentation
AsyncResult: >>> 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 年前3Celery 2.3 Documentation
what 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 年前3Celery 2.2 Documentation
AsyncResult: >>> 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 年前3Celery v4.0.1 Documentation
operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling. Celery has a large and diverse community of users and a task: >>> result = add.delay(4, 4) The ready() method returns whether the task has finished processing or not: >>> result.ready() False You can wait for the result to complete, but this is rarely 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 sent0 码力 | 1040 页 | 1.37 MB | 1 年前3Celery v4.0.2 Documentation
operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling. Celery has a large and diverse community of users and a task: >>> result = add.delay(4, 4) The ready() method returns whether the task has finished processing or not: >>> result.ready() False You can wait for the result to complete, but this is rarely 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 sent0 码力 | 1042 页 | 1.37 MB | 1 年前3Celery v4.1.0 Documentation
operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling. Celery has a large and diverse community of users and a task: >>> result = add.delay(4, 4) The ready() method returns whether the task has finished processing or not: >>> result.ready() False You can wait for the result to complete, but this is rarely 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 sent0 码力 | 1057 页 | 1.35 MB | 1 年前3Celery 4.0 Documentation
operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling. Celery has a large and diverse community of users and a task: >>> result = add.delay(4, 4) The ready() method returns whether the task has finished processing or not: >>> result.ready() False You can wait for the result to complete, but this is rarely 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 sent0 码力 | 1042 页 | 1.37 MB | 1 年前3Celery 3.0 Documentation
operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling. Celery has a large and diverse community of users and a task: >>> result = add.delay(4, 4) The ready() method returns whether the task has finished processing or not: >>> result.ready() False You can wait for the result to complete, but this is rarely 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 sent0 码力 | 703 页 | 2.60 MB | 1 年前3Celery v4.1.0 Documentation
operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling. Celery has a large and diverse community of users and a task: >>> result = add.delay(4, 4) The ready() method returns whether the task has finished processing or not: >>> result.ready() False You can wait for the result to complete, but this is rarely 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 sent0 码力 | 714 页 | 2.63 MB | 1 年前3Celery v4.0.1 Documentation
operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling. Celery has a large and diverse community of users and a task: >>> result = add.delay(4, 4) The ready() method returns whether the task has finished processing or not: >>> result.ready() False You can wait for the result to complete, but this is rarely 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 sent0 码力 | 705 页 | 2.63 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6