Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

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='')
},

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Use month_of_year='*/3' to run every quarter month

{
    'task': 'mytask',
    'schedule': crontab(0, 0, day_of_month='1', month_of_year='*/3')
},
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading