Snippet from my tasks.py file are as follows:
from celery.task.schedules import crontab
from celery.decorators import periodic_task
@periodic_task(
run_every=crontab(minute='15, 45', hour='0, 7, 15'),
)
def task1():
send_mail()
I want the script in task1() to be triggered only at 00:15, 7:15 and 15:45, whereas with the current settings it's triggered at 00:15, 00:45, 7:15, 7:45, 15:15 and 15:45.
How do I do this ? Also, let me know if there is a better approach!