civiform
civiform copied to clipboard
Remove durable jobs from the db that are not found in the DurableJobName enum at server start
Currently, we must keep old job names around in the DurableJobName
enum to avoid getting an IllegalArgumentException
when the job name is not found. It would be better if job names that are not found in the enum are removed from the persisted_durable_jobs
table and never attempt to run.
It might be possible to do this with the play framework: https://www.playframework.com/documentation/2.9.x/ScheduledTasks#Starting-tasks-when-your-app-starts