Celery 3.1 Documentationin xrange(10))().get() [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] Partial group >>> g = group(add.s(i) for i in xrange(10)) >>> g(10).get() [10, 11, 12, 13, 14, 15, 16, 17, 18, 19] Chains Tasks can be linked group >>> res = group(add.s(i, i) for i in xrange(10))() >>> res.get(timeout=1) [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] Simple chord The chord primitive enables us to add callback to be called when all of the xsum(range(100))] and using starmap: >>> ~add.starmap(zip(range(10), range(10))) [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] is the same as having a task doing: @app.task def temp(): return [add(i, i) for i in0 码力 | 887 页 | 1.22 MB | 1 年前3
 Celery 3.1 Documentationdatabase number when using a unix socket is possible by adding the virtual_host parameter to the URL: 14 Chapter 2. Contents Celery Documentation, Release 3.1.25 redis+socket:///path/to/redis.sock?virtual_host=db_number in xrange(10))().get() [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] • Partial group >>> g = group(add.s(i) for i in xrange(10)) >>> g(10).get() [10, 11, 12, 13, 14, 15, 16, 17, 18, 19] Chains Tasks can be linked group >>> res = group(add.s(i, i) for i in xrange(10))() >>> res.get(timeout=1) [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] • Simple chord The chord primitive enables us to add callback to be called when all of the0 码力 | 607 页 | 2.27 MB | 1 年前3
 Celery 2.5 Documentationbroker. The message broker will hold on to the task until a worker server has consumed and executed it. 14 Chapter 1. Getting Started Celery Documentation, Release 2.5.5 Right now we have to check the worker show the task being executed: [INFO/MainProcess] Task celery.task.http.HttpDispatchTask [f2cc8efc-2a14-40cd-85ad-f1c77c94beeb] processed: 100 Since applying tasks can be done via HTTP using the djcelery Eventlet pool could fetch and process hundreds of feeds every second, while the multiprocessing pool spent 14 seconds processing 100 feeds. Note that is one of the applications evented I/O is especially good at0 码力 | 400 页 | 1.40 MB | 1 年前3
 Celery v4.0.1 Documentationin xrange(10))().get() [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] Partial group >>> g = group(add.s(i) for i in xrange(10)) >>> g(10).get() [10, 11, 12, 13, 14, 15, 16, 17, 18, 19] Chains Tasks can be linked group >>> res = group(add.s(i, i) for i in xrange(10))() >>> res.get(timeout=1) [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] Simple chord The chord primitive enables us to add a callback to be called when all of the xsum(range(100))] and using starmap: >>> ~add.starmap(zip(range(10), range(10))) [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] is the same as having a task doing: @app.task def temp(): return [add(i, i) for i in0 码力 | 1040 页 | 1.37 MB | 1 年前3
 Celery v4.0.2 Documentationin xrange(10))().get() [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] Partial group >>> g = group(add.s(i) for i in xrange(10)) >>> g(10).get() [10, 11, 12, 13, 14, 15, 16, 17, 18, 19] Chains Tasks can be linked group >>> res = group(add.s(i, i) for i in xrange(10))() >>> res.get(timeout=1) [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] Simple chord The chord primitive enables us to add a callback to be called when all of the xsum(range(100))] and using starmap: >>> ~add.starmap(zip(range(10), range(10))) [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] is the same as having a task doing: @app.task def temp(): return [add(i, i) for i in0 码力 | 1042 页 | 1.37 MB | 1 年前3
 Celery v4.0.1 DocumentationCelery Documentation Release 4.0.1 Ask Solem contributors Dec 14, 2016 Contents 1 Getting Started 3 2 Contents 5 3 Indices and tables 651 Bibliography 653 Python Module Index 655 i ii Celery database number when using a Unix socket is possible by adding the virtual_host param- eter to the URL: 14 Chapter 2. Contents Celery Documentation, Release 4.0.1 redis+socket:///path/to/redis.sock?virtual_host=db_number in xrange(10))().get() [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] • Partial group >>> g = group(add.s(i) for i in xrange(10)) >>> g(10).get() [10, 11, 12, 13, 14, 15, 16, 17, 18, 19] 32 Chapter 2. Contents0 码力 | 705 页 | 2.63 MB | 1 年前3
 Celery v4.1.0 Documentationin xrange(10))().get() [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] Partial group >>> g = group(add.s(i) for i in xrange(10)) >>> g(10).get() [10, 11, 12, 13, 14, 15, 16, 17, 18, 19] Chains Tasks can be linked group >>> res = group(add.s(i, i) for i in xrange(10))() >>> res.get(timeout=1) [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] Simple chord The chord primitive enables us to add a callback to be called when all of the xsum(range(100))] and using starmap: >>> ~add.starmap(zip(range(10), range(10))) [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] is the same as having a task doing: @app.task def temp(): return [add(i, i) for i in0 码力 | 1057 页 | 1.35 MB | 1 年前3
 Celery 4.0 Documentationin xrange(10))().get() [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] Partial group >>> g = group(add.s(i) for i in xrange(10)) >>> g(10).get() [10, 11, 12, 13, 14, 15, 16, 17, 18, 19] Chains Tasks can be linked group >>> res = group(add.s(i, i) for i in xrange(10))() >>> res.get(timeout=1) [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] Simple chord The chord primitive enables us to add a callback to be called when all of the xsum(range(100))] and using starmap: >>> ~add.starmap(zip(range(10), range(10))) [0, 2, 4, 6, 8, 10, 12, 14, 16, 18] is the same as having a task doing: @app.task def temp(): return [add(i, i) for i in0 码力 | 1042 页 | 1.37 MB | 1 年前3
 Celery 2.4 Documentationtest we will run the worker server in the foreground, so we can see what’s going on in the terminal: 14 Chapter 1. Getting Started Celery Documentation, Release 2.4.7 $ celeryd --loglevel=INFO In production show the task being executed: [INFO/MainProcess] Task celery.task.http.HttpDispatchTask [f2cc8efc-2a14-40cd-85ad-f1c77c94beeb] processed: 100 Since applying tasks can be done via HTTP using the djcelery Eventlet pool could fetch and process hundreds of feeds every second, while the multiprocessing pool spent 14 seconds processing 100 feeds. Note that is one of the applications evented I/O is especially good at0 码力 | 395 页 | 1.54 MB | 1 年前3
 Celery 1.0 Documentationdirectory for the full license text. 1.6. Resources 13 Celery Documentation, Release 1.0.6 (stable) 14 Chapter 1. Getting Started CHAPTER 2 User Guide Release 1.0 Date February 04, 2014 2.1 Tasks show the task being processed: [INFO/MainProcess] Task celery.task.http.HttpDispatchTask [f2cc8efc-2a14-40cd-85ad-f1c77c94beeb] processed: 100 Since applying tasks can be done via HTTP using the celery pool algorithm has been refactored for greater performance and stability. 9.18 0.2.0 [2009-05-20 05:14 P.M CET] • Final release of 0.2.0 • Compatible with carrot version 0.4.0. • Fixes some syntax errors0 码力 | 123 页 | 400.69 KB | 1 年前3
共 51 条
- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 













