Celery 3.0 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() only one argument, then that argument must be an iterable of tasks to chain: this allows us to use generator expressions. Example This is effectively : >>> res = chain(add.s(2, 2), add.s(4))() >>> res You can get to the other tasks by following the result.parent‘s: >>> res.parent.get() 4 Using a generator expression: >>> lazy_chain = chain(add.s(i) for i in range(10)) >>> res = lazy_chain(3) Parameters:0 码力 | 2110 页 | 2.23 MB | 1 年前3
Celery v4.0.0 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() only one argument, then that argument must be an iterable of tasks to chain: this allows us to use generator expressions. Example This is effectively : >>> res = chain(add.s(2, 2), add.s(4))() >>> res You can get to the other tasks by following the result.parent‘s: >>> res.parent.get() 4 Using a generator expression: >>> lazy_chain = chain(add.s(i) for i in range(10)) >>> res = lazy_chain(3) Parameters:0 码力 | 2106 页 | 2.23 MB | 1 年前3
Celery v5.0.1 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() only one argument, then that argument must be an iterable of tasks to chain: this allows us to use generator expressions. Example This is effectively : >>> res = chain(add.s(2, 2), add.s(4))() >>> res You can get to the other tasks by following the result.parent’s: >>> res.parent.get() 4 Using a generator expression: >>> lazy_chain = chain(add.s(i) for i in range(10)) >>> res = lazy_chain(3) *tasks0 码力 | 2313 页 | 2.13 MB | 1 年前3
Celery v5.0.2 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() only one argument, then that argument must be an iterable of tasks to chain: this allows us to use generator expressions. Example This is effectively : >>> res = chain(add.s(2, 2), add.s(4))() >>> res You can get to the other tasks by following the result.parent’s: >>> res.parent.get() 4 Using a generator expression: >>> lazy_chain = chain(add.s(i) for i in range(10)) >>> res = lazy_chain(3) *tasks0 码力 | 2313 页 | 2.14 MB | 1 年前3
Celery v5.0.0 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() only one argument, then that argument must be an iterable of tasks to chain: this allows us to use generator expressions. Example This is effectively : >>> res = chain(add.s(2, 2), add.s(4))() >>> res You can get to the other tasks by following the result.parent’s: >>> res.parent.get() 4 Using a generator expression: >>> lazy_chain = chain(add.s(i) for i in range(10)) >>> res = lazy_chain(3) *tasks0 码力 | 2309 页 | 2.13 MB | 1 年前3
Celery v5.0.5 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() only one argument, then that argument must be an iterable of tasks to chain: this allows us to use generator expressions. Example This is effectively : >>> res = chain(add.s(2, 2), add.s(4))() >>> res You can get to the other tasks by following the result.parent’s: >>> res.parent.get() 4 Using a generator expression: >>> lazy_chain = chain(add.s(i) for i in range(10)) >>> res = lazy_chain(3) *tasks0 码力 | 2315 页 | 2.14 MB | 1 年前3
Celery 3.0 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() only one argument, then that argument must be an iterable of tasks to chain: this allows us to use generator expressions. Example This is effectively ((2 + 2) + 4): >>> res = chain(add.s(2, 2), add.s(4))() You can get to the other tasks by following the result.parent‘s: >>> res.parent.get() 4 Using a generator expression: >>> lazy_chain = chain(add.s(i) for i in range(10)) >>> res = lazy_chain(3) Parameters0 码力 | 703 页 | 2.60 MB | 1 年前3
Celery v4.0.1 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() only one argument, then that argument must be an iterable of tasks to chain: this allows us to use generator expressions. Example This is effectively : >>> res = chain(add.s(2, 2), add.s(4))() >>> res You can get to the other tasks by following the result.parent‘s: >>> res.parent.get() 4 Using a generator expression: >>> lazy_chain = chain(add.s(i) for i in range(10)) >>> res = lazy_chain(3) Parameters:0 码力 | 1040 页 | 1.37 MB | 1 年前3
Celery v4.0.2 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() only one argument, then that argument must be an iterable of tasks to chain: this allows us to use generator expressions. Example This is effectively : >>> res = chain(add.s(2, 2), add.s(4))() >>> res You can get to the other tasks by following the result.parent‘s: >>> res.parent.get() 4 Using a generator expression: >>> lazy_chain = chain(add.s(i) for i in range(10)) >>> res = lazy_chain(3) Parameters:0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery v4.1.0 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. Example >>> lazy_group = group([add.s(2, 2), add.s(4, 4)]) >>> promise = lazy_group() only one argument, then that argument must be an iterable of tasks to chain: this allows us to use generator expressions. Example This is effectively ((2 + 2) + 4): >>> res = chain(add.s(2, 2), add.s(4))() You can get to the other tasks by following the result.parent‘s: >>> res.parent.get() 4 Using a generator expression: >>> lazy_chain = chain(add.s(i) for i in range(10)) >>> res = lazy_chain(3) Parameters0 码力 | 714 页 | 2.63 MB | 1 年前3
共 37 条
- 1
- 2
- 3
- 4













