2👍
✅
Leaving this here since I couldn’t find it in the docs but you can access and modify a created django-q Schedule just like any other Django model.
As long as you update the next_run
and the schedule parameters for the type of schedule you’re using, the cluster workers will use the updated info to run:
from django_q.models import Schedule
existing_schedules = Schedule.objects.filter(func=func_name, args=args)
for schedule in existing_schedules:
schedule.next_run = bell.date
schedule.save()
Source:stackexchange.com