Celery 1.0 Documentation
- celery.registry Task States - celery.states Messaging - celery.messaging Contrib: Test runner - celery.contrib.test_runner Contrib: Abortable tasks - celery.contrib.abortable Django Views - celery.views options available, see the configuration directive reference. Running the celery worker server To test we will run the worker server in the foreground, so we can see what’s going on in the terminal: $ time, this is because SQLite doesn’t allow concurrent writes. Running the celery worker server To test this we’ll be running the worker server in the foreground, so we can see what’s going on without consulting0 码力 | 221 页 | 283.64 KB | 1 年前3Celery 1.0 Documentation
available, see the configuration directive reference. 1.3.3 Running the celery worker server To test we will run the worker server in the foreground, so we can see what’s going on in the terminal: $ this is because SQLite doesn’t allow concurrent writes. 1.4.2 Running the celery worker server To test this we’ll be running the worker server in the foreground, so we can see what’s going on without consulting can acknowledge the message we received using basic.ack: 6> basic.ack 1 ok. To clean up after our test session we should delete the entities we created: 7> queue.delete testqueue ok. 0 messages deleted0 码力 | 123 页 | 400.69 KB | 1 年前3Celery v4.4.7 Documentation
each task will have a generated name like moduleA.tasks.taskA, moduleA.tasks.taskB, moduleB.tasks.test, and so on. You may want to get rid of having tasks in all task names. As pointed above, you can explicitly callbacks: errback: So each task will have a name like moduleA.taskA, moduleA.taskB and moduleB.test. Warning Make sure that your app.gen_task_name() is a pure function: meaning that for the same input Calls test('hello') every 10 seconds. sender.add_periodic_task(10.0, test.s('hello'), name='add every 10') # Calls test('world') every 30 seconds sender.add_periodic_task(30.0, test.s('world')0 码力 | 1219 页 | 1.44 MB | 1 年前3Celery v4.4.6 Documentation
each task will have a generated name like moduleA.tasks.taskA, moduleA.tasks.taskB, moduleB.tasks.test, and so on. You may want to get rid of having tasks in all task names. As pointed above, you can explicitly callbacks: errback: So each task will have a name like moduleA.taskA, moduleA.taskB and moduleB.test. Warning Make sure that your app.gen_task_name() is a pure function: meaning that for the same input Calls test('hello') every 10 seconds. sender.add_periodic_task(10.0, test.s('hello'), name='add every 10') # Calls test('world') every 30 seconds sender.add_periodic_task(30.0, test.s('world')0 码力 | 1216 页 | 1.44 MB | 1 年前3Celery v4.4.5 Documentation
each task will have a generated name like moduleA.tasks.taskA, moduleA.tasks.taskB, moduleB.tasks.test, and so on. You may want to get rid of having tasks in all task names. As pointed above, you can explicitly callbacks: errback: So each task will have a name like moduleA.taskA, moduleA.taskB and moduleB.test. Warning Make sure that your app.gen_task_name() is a pure function: meaning that for the same input Calls test('hello') every 10 seconds. sender.add_periodic_task(10.0, test.s('hello'), name='add every 10') # Calls test('world') every 30 seconds sender.add_periodic_task(30.0, test.s('world')0 码力 | 1215 页 | 1.44 MB | 1 年前3Celery 4.4.3 Documentation
each task will have a generated name like moduleA.tasks.taskA, moduleA.tasks.taskB, moduleB.tasks.test, and so on. You may want to get rid of having tasks in all task names. As pointed above, you can explicitly callbacks: errback: So each task will have a name like moduleA.taskA, moduleA.taskB and moduleB.test. Warning Make sure that your app.gen_task_name() is a pure function: meaning that for the same input Calls test('hello') every 10 seconds. sender.add_periodic_task(10.0, test.s('hello'), name='add every 10') # Calls test('world') every 30 seconds sender.add_periodic_task(30.0, test.s('world')0 码力 | 1209 页 | 1.44 MB | 1 年前3Celery v4.4.4 Documentation
each task will have a generated name like moduleA.tasks.taskA, moduleA.tasks.taskB, moduleB.tasks.test, and so on. You may want to get rid of having tasks in all task names. As pointed above, you can explicitly callbacks: errback: So each task will have a name like moduleA.taskA, moduleA.taskB and moduleB.test. Warning Make sure that your app.gen_task_name() is a pure function: meaning that for the same input Calls test('hello') every 10 seconds. sender.add_periodic_task(10.0, test.s('hello'), name='add every 10') # Calls test('world') every 30 seconds sender.add_periodic_task(30.0, test.s('world')0 码力 | 1215 页 | 1.44 MB | 1 年前3Celery 4.4.0 Documentation
each task will have a generated name like moduleA.tasks.taskA, moduleA.tasks.taskB, moduleB.tasks.test, and so on. You may want to get rid of having tasks in all task names. As pointed above, you can explicitly callbacks: errback: So each task will have a name like moduleA.taskA, moduleA.taskB and moduleB.test. Warning Make sure that your app.gen_task_name() is a pure function: meaning that for the same input Calls test('hello') every 10 seconds. sender.add_periodic_task(10.0, test.s('hello'), name='add every 10') # Calls test('world') every 30 seconds sender.add_periodic_task(30.0, test.s('world')0 码力 | 1185 页 | 1.42 MB | 1 年前3Celery 4.4.2 Documentation
each task will have a generated name like moduleA.tasks.taskA, mod- uleA.tasks.taskB, moduleB.tasks.test, and so on. You may want to get rid of having tasks in all task names. As pointed above, you can explicitly app = MyCelery('main') So each task will have a name like moduleA.taskA, moduleA.taskB and moduleB.test. Warning: Make sure that your app.gen_task_name() is a pure function: meaning that for the same input **kwargs): # Calls test('hello') every 10 seconds. sender.add_periodic_task(10.0, test.s('hello'), name='add every 10') # Calls test('world') every 30 seconds sender.add_periodic_task(30.0, test.s('world'),0 码力 | 797 页 | 2.85 MB | 1 年前3Celery 4.4.1 Documentation
each task will have a generated name like moduleA.tasks.taskA, moduleA.tasks.taskB, moduleB.tasks.test, and so on. You may want to get rid of having tasks in all task names. As pointed above, you can explicitly callbacks: errback: So each task will have a name like moduleA.taskA, moduleA.taskB and moduleB.test. Warning Make sure that your app.gen_task_name() is a pure function: meaning that for the same input Calls test('hello') every 10 seconds. sender.add_periodic_task(10.0, test.s('hello'), name='add every 10') # Calls test('world') every 30 seconds sender.add_periodic_task(30.0, test.s('world')0 码力 | 1188 页 | 1.42 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6