Celery 2.5 Documentationwe have to check the worker log files to know what happened with the task. Applying a task returns an AsyncResult, if you have configured a result store the AsyncResult enables you to check the state of used. Task.ignore_result Don’t store task state. Note that this means you can’t use AsyncResult to check if the task is ready, or get its return value. Task.store_errors_even_if_ignored If True, errors status_code): self.status_code = status_code Exception.__init__(self, status_code) # <-- REQUIRED So the rule is: For any exception that supports custom arguments *args, Exception.__init__(self, *args) must be0 码力 | 400 页 | 1.40 MB | 1 年前3
Celery 2.5 Documentationwe have to check the worker log files to know what happened with the task. Applying a task returns an AsyncResult, if you have configured a result store the AsyncResult enables you to check the state of used. Task.ignore_result Don’t store task state. Note that this means you can’t use AsyncResult to check if the task is ready, or get its return value. Task.store_errors_even_if_ignored If True, errors self.status_code = status_code Exception.__init__(self, status_code) # <-- REQUIRED So the rule is: For any exception that supports custom arguments *args, Exception.__init__(self, *args) must be0 码力 | 647 页 | 1011.88 KB | 1 年前3
Celery 3.1 Documentationto Celery you can get started by following the First Steps with Celery tutorial. • You can also check out the FAQ. 3 Celery Documentation, Release 3.1.25 4 Chapter 1. Getting Started CHAPTER 2 Contents the workers console output. Calling a task returns an AsyncResult instance, which can be used to check the state of the task, wait for the task to finish or get its return value (or if the task failed arguments (1 given)',) In this case it will return the exception instance raised instead, and so to check whether the task succeeded or failed you will have to use the corresponding methods on the result0 码力 | 607 页 | 2.27 MB | 1 年前3
Celery 3.1 Documentationnew to Celery you can get started by following the First Steps with Celery tutorial. You can also check out the FAQ. Contents Copyright Getting Started Introduction to Celery Brokers First Steps with the workers console output. Calling a task returns an AsyncResult instance, which can be used to check the state of the task, wait for the task to finish or get its return value (or if the task failed arguments (1 given)',) In this case it will return the exception instance raised instead, and so to check whether the task succeeded or failed you will have to use the corresponding methods on the result0 码力 | 887 页 | 1.22 MB | 1 年前3
Celery 3.0 Documentationto Celery you can get started by following the First Steps with Celery tutorial. • You can also check out the FAQ. 3 Celery Documentation, Release 4.0.0 4 Chapter 1. Getting Started CHAPTER 2 Contents the workers console output. Calling a task returns an AsyncResult instance: this can be used to check the state of the task, wait for the task to finish, or get its return value (or if the task failed arguments (1 given)',) In this case it’ll return the exception instance raised instead, and so to check whether the task succeeded or failed you’ll have to use the corresponding methods on the result instance:0 码力 | 703 页 | 2.60 MB | 1 年前3
Celery v4.0.1 Documentationnew to Celery you can get started by following the First Steps with Celery tutorial. You can also check out the FAQ. Contents Copyright Getting Started Introduction to Celery Brokers First Steps with the workers console output. Calling a task returns an AsyncResult instance: this can be used to check the state of the task, wait for the task to finish, or get its return value (or if the task failed arguments (1 given)',) In this case it’ll return the exception instance raised instead, and so to check whether the task succeeded or failed you’ll have to use the corresponding methods on the result instance:0 码力 | 1040 页 | 1.37 MB | 1 年前3
Celery v4.0.2 Documentationnew to Celery you can get started by following the First Steps with Celery tutorial. You can also check out the FAQ. Contents Copyright Getting Started Introduction to Celery Brokers First Steps with the workers console output. Calling a task returns an AsyncResult instance: this can be used to check the state of the task, wait for the task to finish, or get its return value (or if the task failed arguments (1 given)',) In this case it’ll return the exception instance raised instead, and so to check whether the task succeeded or failed you’ll have to use the corresponding methods on the result instance:0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery v4.1.0 Documentationto Celery you can get started by following the First Steps with Celery tutorial. • You can also check out the FAQ. 3 Celery Documentation, Release 4.1.0 4 Chapter 1. Getting Started CHAPTER 2 Contents Documentation, Release 4.1.0 Calling a task returns an AsyncResult instance. This can be used to check the state of the task, wait for the task to finish, or get its return value (or if the task failed arguments (1 given)',) In this case it’ll return the exception instance raised instead, and so to check whether the task succeeded or failed you’ll have to use the corresponding methods on the result instance:0 码力 | 714 页 | 2.63 MB | 1 年前3
Celery v4.0.1 Documentationto Celery you can get started by following the First Steps with Celery tutorial. • You can also check out the FAQ. 3 Celery Documentation, Release 4.0.1 4 Chapter 1. Getting Started CHAPTER 2 Contents Documentation, Release 4.0.1 Calling a task returns an AsyncResult instance: this can be used to check the state of the task, wait for the task to finish, or get its return value (or if the task failed arguments (1 given)',) In this case it’ll return the exception instance raised instead, and so to check whether the task succeeded or failed you’ll have to use the corresponding methods on the result instance:0 码力 | 705 页 | 2.63 MB | 1 年前3
Celery v4.1.0 Documentationnew to Celery you can get started by following the First Steps with Celery tutorial. You can also check out the FAQ. Contents Copyright Getting Started Introduction to Celery Brokers First Steps with the worker’s console output. Calling a task returns an AsyncResult instance. This can be used to check the state of the task, wait for the task to finish, or get its return value (or if the task failed arguments (1 given)',) In this case it’ll return the exception instance raised instead, and so to check whether the task succeeded or failed you’ll have to use the corresponding methods on the result instance:0 码力 | 1057 页 | 1.35 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













