celerybeat

Celery crontab to schedule 1 of the month and quarterly in year

Celery crontab to schedule 1 of the month and quarterly in year Question: I have a celery task which executes quarterly on 1 of the month how can my month_of_year can be written { ‘task’: ‘mytask’, ‘schedule’: crontab(day_of_month=’1′, month_of_year=”) }, Asked By: jimmy || Source Answers: Use month_of_year=’*/3′ to run every quarter month { ‘task’: …

Total answers: 1

Celery in python to build microservices

Celery in python to build microservices Question: I want to break down a project to small microservices. I’ve been thinking of different tools like gRPC, but I think celery might be a better option for me. Please if I’m wrong and celery is not a good choice, tell me why. What exactly I want to …

Total answers: 3

Celery beat not starting EOFError('Ran out of input')

Celery beat not starting EOFError('Ran out of input') Question: Everything worked perfectly fine until: celery beat v3.1.18 (Cipater) is starting. __ – … __ – _ Configuration -> . broker -> amqp://user:**@staging-api.user-app.com:5672// . loader -> celery.loaders.app.AppLoader . scheduler -> celery.beat.PersistentScheduler . db -> /tmp/beat.db . logfile -> [stderr]@%INFO . maxinterval -> now (0s) [2015-09-25 17:29:24,453: …

Total answers: 2

How to dynamically add / remove periodic tasks to Celery (celerybeat)

How to dynamically add / remove periodic tasks to Celery (celerybeat) Question: If I have a function defined as follows: def add(x,y): return x+y Is there a way to dynamically add this function as a celery PeriodicTask and kick it off at runtime? I’d like to be able to do something like (pseudocode): some_unique_task_id = …

Total answers: 9