Updating an existing cron expression via DynamicCron.insert can lead to that job being immediately re-run, as DynamicCron thinks the last run was missed.
Expected Behavior
Either
oban_crons.insertions should be reset when updating the expression via DynamicCron.insert, just like it is reset when updating via DynamicCron.update
or the docs should clearly state this is not supported
Right now the docs only state
it is better to use update/2 to make targeted updates
Environment
oban 2.18.3
oban_pro 1.4.13
13
1.17.3
, erlang27.1
Current Behavior
Updating an existing cron expression via
DynamicCron.insert
can lead to that job being immediately re-run, as DynamicCron thinks the last run was missed.Expected Behavior
Either
oban_crons.insertions
should be reset when updating the expression viaDynamicCron.insert
, just like it is reset when updating viaDynamicCron.update
Right now the docs only state