Django celery crontab every 30 seconds - is it even possible?
celery, cron, django, scheduled-tasks
Solution
Very first example they have in the documentation is...
Example: Run the tasks.add task every 30 seconds.
from datetime import timedelta
CELERYBEAT_SCHEDULE = {
"runs-every-30-seconds": {
"task": "tasks.add",
"schedule": timedelta(seconds=30),
"args": (16, 16)
},
}
Problem
Is it possible to run the django celery crontab very 30 seconds DURING SPECIFIC HOURS? There are only settings for minutes, hours and days. I have the crontab working, but I'd like to run it every 30 seconds, as opposed to every minute. Alternatively... Is it possible to turn the interval on for 30 seconds, and turn on the interval schedule only for a certain period of the day?