Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to submit a Celery task from Ruby

I am currently migrating a python application to use Celery (using RabbitMQ) however I need to enqueue the tasks from a ruby program (to be then executed by the python application).

Is there an easy way to either pass a message in the right format to RabbitMQ or a gem available for simply queueing the job?

(I've looked into RCelery however it seems a bit outdated and not sure if this is exactly the solution I'm looking for)

like image 598
jwarzech Avatar asked Dec 09 '25 06:12

jwarzech


1 Answers

I'm not sure if there is a Ruby-specific solution out there, but one option is that you can submit tasks via HTTP pretty easily. This is mentioned at the very end of the Webhooks Guide and points to an HTTP Gateway Example that is based on the djcelery library.

like image 57
Chris Ward Avatar answered Dec 11 '25 20:12

Chris Ward



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!