Find better pattern for scheduling first run of Task
#38
Labels
🏋️ improvement
Enhancements or optimizations to existing functionality
🧁 needs baking
Requires more time for consideration or development before further action
I'm trying to migrate an internal application to use
django-q-registry
. I have this task that needs to run periodically:It exists in the database as an unmanaged
Schedule
, with the next run date a couple months in the future. I don't want to passnext_run
to theregister_task
decorator because when I remove it the internals of this library would consider it a 'new' task and remove it and recreate it with the next run time being right now.I don't want it to run right now, I'd like to temporarily pass in the initial time to run, then have
setup_periodic_tasks
run to create it with this initial time set as the next run time, and then finally remove the initial time without the library thinking it's a completely new Task.The text was updated successfully, but these errors were encountered: