Celery 1.0 Documentation
Documentation, Release 1.0.6 (stable) ’celery.task.rest.RESTProxyTask’:rest.RESTProxyTask object at 0x101d1f410>, ’celery.task.rest.Task’: rest.Task object at 0x101d1f4d0>, ’celery.map_async’: Tasks (Webhooks) 2.3.1 Executing tasks on a web server If you need to call into another language, framework or similar, you can do so by using HTTP callback tasks. The HTTP callback tasks use GET/POST arguments :retval => @x * @y} render :json => @status end You can easily port this scheme to any language/framework; new examples and libraries are very welcome. To execute the task you use the URL class: >>> from 0 码力 | 123 页 | 400.69 KB | 1 年前3Celery 1.0 Documentation
object at 0x101d17890>, 'celery.task.rest.RESTProxyTask':rest.RESTProxyTask object at 0x101d1f410>, 'celery.task.rest.Task': rest.Task object at 0x101d1f4d0>, 'celery.map_async': Callback Tasks (Webhooks) Executing tasks on a web server If you need to call into another language, framework or similar, you can do so by using HTTP callback tasks. The HTTP callback tasks use GET/POST arguments :retval => @x * @y} render :json => @status end You can easily port this scheme to any language/framework; new examples and libraries are very welcome. To execute the task you use the URL class: >>> from 0 码力 | 221 页 | 283.64 KB | 1 年前3Celery 2.0 Documentation
webhook example • Executing webhook tasks 2.5.1 Basics If you need to call into another language, framework or similar, you can do so by using HTTP callback tasks. The HTTP callback tasks use GET/POST arguments :retval => @x * @y} render :json => @status end You can easily port this scheme to any language/framework; new examples and libraries are very welcome. 2.5.4 Executing webhook tasks To execute the task one at a time You can accomplish this by using a lock. In this example we’ll be using the cache framework to set a lock that is accessible for all workers. It’s part of an imaginary RSS feed importer called0 码力 | 165 页 | 492.43 KB | 1 年前3Celery 2.5 Documentation
webhook example • Executing webhook tasks 2.7.1 Basics If you need to call into another language, framework or similar, you can do so by using HTTP callback tasks. The HTTP callback tasks uses GET/POST data :retval => @x * @y} render :json => @status end You can easily port this scheme to any language/framework; new examples and libraries are very welcome. 2.7.4 Executing webhook tasks To execute the task instance to be initialized. Note that only the app and hostname attributes have been set so far, and the rest of __init__ has not been executed. • conf The configuration of the current app. worker_init Dispatched0 码力 | 400 页 | 1.40 MB | 1 年前3Celery 2.3 Documentation
webhook example • Executing webhook tasks 2.7.1 Basics If you need to call into another language, framework or similar, you can do so by using HTTP callback tasks. The HTTP callback tasks uses GET/POST data :retval => @x * @y} render :json => @status end You can easily port this scheme to any language/framework; new examples and libraries are very welcome. 2.7.4 Executing webhook tasks To execute the task one at a time You can accomplish this by using a lock. In this example we’ll be using the cache framework to set a lock that is accessible for all workers. It’s part of an imaginary RSS feed importer called0 码力 | 334 页 | 1.25 MB | 1 年前3Celery 2.0 Documentation
Rails webhook example Executing webhook tasks Basics If you need to call into another language, framework or similar, you can do so by using HTTP callback tasks. The HTTP callback tasks use GET/POST arguments :retval => @x * @y} render :json => @status end You can easily port this scheme to any language/framework; new examples and libraries are very welcome. Executing webhook tasks To execute the task you one at a time You can accomplish this by using a lock. In this example we’ll be using the cache framework to set a lock that is accessible for all workers. It’s part of an imaginary RSS feed importer called0 码力 | 284 页 | 332.71 KB | 1 年前3Celery 2.5 Documentation
Rails webhook example Executing webhook tasks Basics If you need to call into another language, framework or similar, you can do so by using HTTP callback tasks. The HTTP callback tasks uses GET/POST data :retval => @x * @y} render :json => @status end You can easily port this scheme to any language/framework; new examples and libraries are very welcome. Executing webhook tasks To execute the task you instance to be initialized. Note that only the app and hostname attributes have been set so far, and the rest of __init__ has not been executed. conf The configuration of the current app. worker_init Dispatched0 码力 | 647 页 | 1011.88 KB | 1 年前3Celery 3.1 Documentation
Introduction to Celery What is a Task Queue? What do I need? Get Started Celery is… Features Framework Integration Quickjump Installation Brokers Broker Instructions Experimental Transports Broker Introduction to Celery What is a Task Queue? What do I need? Get Started Celery is… Features Framework Integration Quickjump Installation What is a Task Queue? Task queues are used as a mechanism to using “bootsteps” — a dependency graph enabling fine grained control of the worker’s internals. Framework Integration Celery is easy to integrate with web frameworks, some of which even have integration0 码力 | 887 页 | 1.22 MB | 1 年前3Celery 2.2 Documentation
webhook example • Executing webhook tasks 2.7.1 Basics If you need to call into another language, framework or similar, you can do so by using HTTP callback tasks. The HTTP callback tasks uses GET/POST data :retval => @x * @y} render :json => @status end You can easily port this scheme to any language/framework; new examples and libraries are very welcome. 2.7.4 Executing webhook tasks To execute the task one at a time You can accomplish this by using a lock. In this example we’ll be using the cache framework to set a lock that is accessible for all workers. It’s part of an imaginary RSS feed importer called0 码力 | 314 页 | 1.26 MB | 1 年前3Celery 2.3 Documentation
Rails webhook example Executing webhook tasks Basics If you need to call into another language, framework or similar, you can do so by using HTTP callback tasks. The HTTP callback tasks uses GET/POST data :retval => @x * @y} render :json => @status end You can easily port this scheme to any language/framework; new examples and libraries are very welcome. Executing webhook tasks To execute the task you one at a time You can accomplish this by using a lock. In this example we’ll be using the cache framework to set a lock that is accessible for all workers. It’s part of an imaginary RSS feed importer called0 码力 | 530 页 | 900.64 KB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6