civiform icon indicating copy to clipboard operation
civiform copied to clipboard

Remove durable jobs from the db that are not found in the DurableJobName enum at server start

Open rockycodes opened this issue 9 months ago • 0 comments

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

rockycodes avatar Apr 30 '24 19:04 rockycodes