Celery 3.1 Documentationexample, the overhead of messaging and synchronization makes this a lot slower than its Python counterpart: sum(i + i for i in xrange(100)) The synchronization step is costly, so you should avoid using chords as much as possible. Still, the chord is a powerful primitive to have in your toolbox as synchronization is a required step for many parallel algorithms. Let’s break the chord expression down: >>> task: @app.task(ignore_result=False) def another_task(project): do_something() By default the synchronization step is implemented by having a recurring task poll the completion of the group every second0 码力 | 607 页 | 2.27 MB | 1 年前3
Celery 3.1 Documentationexample, the overhead of messaging and synchronization makes this a lot slower than its Python counterpart: sum(i + i for i in xrange(100)) The synchronization step is costly, so you should avoid using chords as much as possible. Still, the chord is a powerful primitive to have in your toolbox as synchronization is a required step for many parallel algorithms. Let’s break the chord expression down: >>> @app.task(ignore_result=False) def another_task(project): do_something() By default the synchronization step is implemented by having a recurring task poll the completion of the group every second0 码力 | 887 页 | 1.22 MB | 1 年前3
Celery 2.3 Documentationexample, the overhead of messaging and synchronization makes this a lot slower than its Python counterpart: sum(i + i for i in xrange(100)) The synchronization step is costly, so you should avoid using chords as much as possible. Still, the chord is a powerful primitive to have in your toolbox as synchronization is a required step for many parallel algorithms. Let’s break the chord expression down: >>> value (but remember to never have a task wait for other tasks) Important Notes By default the synchronization step is implemented by having a recurring task poll the completion of the taskset every second0 码力 | 334 页 | 1.25 MB | 1 年前3
Celery 3.0 Documentationexample, the overhead of messaging and synchronization makes this a lot slower than its Python counterpart: >>> sum(i + i for i in xrange(100)) The synchronization step is costly, so you should avoid using chords as much as possible. Still, the chord is a powerful primitive to have in your toolbox as synchronization is a required step for many parallel algorithms. Let’s break the chord expression down: >>> task: @app.task(ignore_result=False) def another_task(project): do_something() By default the synchronization step is implemented by having a recurring task poll the completion of the group every second0 码力 | 703 页 | 2.60 MB | 1 年前3
Celery v4.0.1 Documentationexample, the overhead of messaging and synchronization makes this a lot slower than its Python counterpart: >>> sum(i + i for i in xrange(100)) The synchronization step is costly, so you should avoid using chords as much as possible. Still, the chord is a powerful primitive to have in your toolbox as synchronization is a required step for many parallel algorithms. Let’s break the chord expression down: >>> @app.task(ignore_result=False) def another_task(project): do_something() By default the synchronization step is implemented by having a recurring task poll the completion of the group every second0 码力 | 1040 页 | 1.37 MB | 1 年前3
Celery v4.0.2 Documentationexample, the overhead of messaging and synchronization makes this a lot slower than its Python counterpart: >>> sum(i + i for i in xrange(100)) The synchronization step is costly, so you should avoid using chords as much as possible. Still, the chord is a powerful primitive to have in your toolbox as synchronization is a required step for many parallel algorithms. Let’s break the chord expression down: >>> @app.task(ignore_result=False) def another_task(project): do_something() By default the synchronization step is implemented by having a recurring task poll the completion of the group every second0 码力 | 1042 页 | 1.37 MB | 1 年前3
Celery v4.1.0 Documentationexample, the overhead of messaging and synchronization makes this a lot slower than its Python counterpart: >>> sum(i + i for i in xrange(100)) The synchronization step is costly, so you should avoid using chords as much as possible. Still, the chord is a powerful primitive to have in your toolbox as synchronization is a required step for many parallel algorithms. Let’s break the chord expression down: >>> task: @app.task(ignore_result=False) def another_task(project): do_something() By default the synchronization step is implemented by having a recurring task poll the completion of the group every second0 码力 | 714 页 | 2.63 MB | 1 年前3
Celery v4.0.1 Documentationexample, the overhead of messaging and synchronization makes this a lot slower than its Python counterpart: >>> sum(i + i for i in xrange(100)) The synchronization step is costly, so you should avoid using chords as much as possible. Still, the chord is a powerful primitive to have in your toolbox as synchronization is a required step for many parallel algorithms. Let’s break the chord expression down: >>> task: @app.task(ignore_result=False) def another_task(project): do_something() By default the synchronization step is implemented by having a recurring task poll the completion of the group every second0 码力 | 705 页 | 2.63 MB | 1 年前3
Celery v4.1.0 Documentationexample, the overhead of messaging and synchronization makes this a lot slower than its Python counterpart: >>> sum(i + i for i in xrange(100)) The synchronization step is costly, so you should avoid using chords as much as possible. Still, the chord is a powerful primitive to have in your toolbox as synchronization is a required step for many parallel algorithms. Let’s break the chord expression down: >>> @app.task(ignore_result=False) def another_task(project): do_something() By default the synchronization step is implemented by having a recurring task poll the completion of the group every second0 码力 | 1057 页 | 1.35 MB | 1 年前3
Celery v4.0.0 Documentationexample, the overhead of messaging and synchronization makes this a lot slower than its Python counterpart: >>> sum(i + i for i in xrange(100)) The synchronization step is costly, so you should avoid using chords as much as possible. Still, the chord is a powerful primitive to have in your toolbox as synchronization is a required step for many parallel algorithms. Let’s break the chord expression down: >>> task: @app.task(ignore_result=False) def another_task(project): do_something() By default the synchronization step is implemented by having a recurring task poll the completion of the group every second0 码力 | 701 页 | 2.59 MB | 1 年前3
共 43 条
- 1
- 2
- 3
- 4
- 5













