Celery v4.2.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 ((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 码力 | 746 页 | 2.73 MB | 1 年前3
Celery v4.2.0 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. 276 Chapter 2. Contents Celery Documentation, Release 4.2.0 Example >>> 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 码力 | 738 页 | 2.68 MB | 1 年前3
Celery v4.2.2 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. 2.11. API Reference 283 Celery Documentation, Release 4.2.2 Example >>> 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 码力 | 744 页 | 2.71 MB | 1 年前3
Celery 4.4.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 ((2 + 2) + 4): >>> res = chain(add.s(2, 2), add.s(4))() 300 Chapter 3. Contents Celery Documentation, Release 4.4.2 >>> res.parent.get() 4 Using a generator expression: >>> lazy_chain = chain(add.s(i) for i in range(10)) >>> res = lazy_chain(3) Parameters0 码力 | 797 页 | 2.85 MB | 1 年前3
Celery v4.3.0 Documentationan iterable then that’ll be used as the list of tasks instead: this allows us to use group with generator expressions. 300 Chapter 3. Contents Celery Documentation, Release 4.3.0 Example >>> 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 码力 | 790 页 | 2.84 MB | 1 年前3
Celery 4.4.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 ((2 + 2) + 4): >>> res = chain(add.s(2, 2), add.s(4))() 300 Chapter 3. Contents Celery Documentation, Release 4.4.1 >>> res.parent.get() 4 Using a generator expression: >>> lazy_chain = chain(add.s(i) for i in range(10)) >>> res = lazy_chain(3) Parameters0 码力 | 797 页 | 2.85 MB | 1 年前3
Celery 4.4.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 码力 | 795 页 | 2.84 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.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
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. 312 Chapter 2. Contents Celery Documentation, Release 4.0.1 Example This is effectively 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 码力 | 705 页 | 2.63 MB | 1 年前3
共 37 条
- 1
- 2
- 3
- 4













