Using node-celery, we can enable node to push Celery jobs to the task queue. How can we allow node to be a Celery worker and consume the queue?
相关问题
- Is there a limit to how many levels you can nest i
- How to toggle on Order in ReactJS
- void before promise syntax
- npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs
- Keeping track of variable instances
For Celery if the end point is amqp. Checkout Celery.js Github any node process started as amqp consumer would work fine. For every other
self.conf.backend_type
types you can have varied consumer. Following example is merely for amqp.One such example. The
message
below may be the Celery task object.Here is an approach from the Celery doc, by exposing REST api:
http://docs.celeryproject.org/en/latest/faq.html#is-celery-multilingual
some example: http://ask.github.io/celery/cookbook/remote-tasks.html