Reputation: 35282
Is there a way to use Celery for:
Upvotes: 6
Views: 11558
Reputation: 75
you can use flower rest API to do the same, as flower is a monitoring tool for celery. But it comes with rest api to add task and all
https://flower.readthedocs.io/en/latest/index.html
Upvotes: 2
Reputation: 111
.apply_async()
Upvotes: 4
Reputation: 9246
Yes, create an I/O class that handle your http requests and process.
Read about celery tasks and remember to set connect_timeout= 5.0, read_timeout = 30.0
timeouts to your I/O ops to not block your workers.
There is a precise example of using requests in the celery worker tasks.
Upvotes: 2