Celery 3.1 Documentationdecorators in combination with the task decorator you must make sure that the task decorator is applied last (which in Python oddly means that it must be the first in the list): @app.task @decorator2 Celery supports linking tasks together so that one task follows another. The callback task will be applied with the result of the parent task as a partial argument: add.apply_async((2, 2), link=add.s(16)) the previous result, forming the expression (2 + 2) + 16 = 20 You can also cause a callback to be applied if task raises an exception (errback), but this behaves differently from a regular callback in that0 码力 | 607 页 | 2.27 MB | 1 年前3
Celery 3.1 Documentationdecorators in combination with the task decorator you must make sure that the task decorator is applied last (which in Python oddly means that it must be the first in the list): @app.task @decorator2 Celery supports linking tasks together so that one task follows another. The callback task will be applied with the result of the parent task as a partial argument: add.apply_async((2, 2), link=add.s(16)) that adds 16 to the previous result, forming the expression You can also cause a callback to be applied if task raises an exception (errback), but this behaves differently from a regular callback in that0 码力 | 887 页 | 1.22 MB | 1 年前3
Celery 3.0 Documentationdecorators in combination with the task decorator you must make sure that the task decorator is applied last (oddly, in Python this means it must be first in the list): @app.task @decorator2 @decorator1 Celery supports linking tasks together so that one task follows another. The callback task will be applied with the result of the parent task as a partial argument: add.apply_async((2, 2), link=add.s(16)) the previous result, forming the expression (2 + 2) + 16 = 20 You can also cause a callback to be applied if task raises an exception (errback), but this behaves differently from a regular callback in that0 码力 | 703 页 | 2.60 MB | 1 年前3
Celery v4.0.1 Documentationdecorators in combination with the task decorator you must make sure that the task decorator is applied last (oddly, in Python this means it must be first in the list): @app.task @decorator2 @decorator1 Celery supports linking tasks together so that one task follows another. The callback task will be applied with the result of the parent task as a partial argument: add.apply_async((2, 2), link=add.s(16)) that adds 16 to the previous result, forming the expression You can also cause a callback to be applied if task raises an exception (errback), but this behaves differently from a regular callback in that0 码力 | 1040 页 | 1.37 MB | 1 年前3
Celery v4.0.2 Documentationdecorators in combination with the task decorator you must make sure that the task decorator is applied last (oddly, in Python this means it must be first in the list): @app.task @decorator2 @decorator1 Celery supports linking tasks together so that one task follows another. The callback task will be applied with the result of the parent task as a partial argument: add.apply_async((2, 2), link=add.s(16)) that adds 16 to the previous result, forming the expression You can also cause a callback to be applied if task raises an exception (errback), but this behaves differently from a regular callback in that0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery v4.1.0 Documentationdecorators in combination with the task decorator you must make sure that the task decorator is applied last (oddly, in Python this means it must be first in the list): @app.task @decorator2 @decorator1 Celery supports linking tasks together so that one task follows another. The callback task will be applied with the result of the parent task as a partial argument: add.apply_async((2, 2), link=add.s(16)) the previous result, forming the expression (2 + 2) + 16 = 20 You can also cause a callback to be applied if task raises an exception (errback), but this behaves differently from a regular callback in that0 码力 | 714 页 | 2.63 MB | 1 年前3
Celery v4.0.1 Documentationdecorators in combination with the task decorator you must make sure that the task decorator is applied last (oddly, in Python this means it must be first in the list): @app.task @decorator2 @decorator1 Celery supports linking tasks together so that one task follows another. The callback task will be applied with the result of the parent task as a partial argument: add.apply_async((2, 2), link=add.s(16)) the previous result, forming the expression (2 + 2) + 16 = 20 You can also cause a callback to be applied if task raises an exception (errback), but this behaves differently from a regular callback in that0 码力 | 705 页 | 2.63 MB | 1 年前3
Celery v4.1.0 Documentationdecorators in combination with the task decorator you must make sure that the task decorator is applied last (oddly, in Python this means it must be first in the list): @app.task @decorator2 @decorator1 Celery supports linking tasks together so that one task follows another. The callback task will be applied with the result of the parent task as a partial argument: add.apply_async((2, 2), link=add.s(16)) that adds 16 to the previous result, forming the expression You can also cause a callback to be applied if task raises an exception (errback), but this behaves differently from a regular callback in that0 码力 | 1057 页 | 1.35 MB | 1 年前3
Celery v4.0.0 Documentationdecorators in combination with the task decorator you must make sure that the task decorator is applied last (oddly, in Python this means it must be first in the list): @app.task @decorator2 @decorator1 Celery supports linking tasks together so that one task follows another. The callback task will be applied with the result of the parent task as a partial argument: add.apply_async((2, 2), link=add.s(16)) the previous result, forming the expression (2 + 2) + 16 = 20 You can also cause a callback to be applied if task raises an exception (errback), but this behaves differently from a regular callback in that0 码力 | 701 页 | 2.59 MB | 1 年前3
Celery 4.0 Documentationdecorators in combination with the task decorator you must make sure that the task decorator is applied last (oddly, in Python this means it must be first in the list): @app.task @decorator2 @decorator1 Celery supports linking tasks together so that one task follows another. The callback task will be applied with the result of the parent task as a partial argument: add.apply_async((2, 2), link=add.s(16)) the previous result, forming the expression (2 + 2) + 16 = 20 You can also cause a callback to be applied if task raises an exception (errback), but this behaves differently from a regular callback in that0 码力 | 707 页 | 2.63 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6













