cancel
Showing results for 
Search instead for 
Did you mean: 

Remove scheduled jobs after changing cron settings

0 Kudos

Remove scheduled jobs after changing cron settings

Feature request from ajpevers, posted on GitHub Feb 12, 2016

It would be helpful if pending entries in cron_schedule are deleted when changing a cron job's config: screen shot 2016-02-12 at 09 46 48

I've changed the config from 09:50:00 to 09:55:00 and then to Enabled: No. In between changing the config settings i ran: magento cache:clean config && magento cron:run. The result was this:

screen shot 2016-02-12 at 09 50 17

At the moment that the cron is turned off by config it will still run based on the cron_schedule entry:

screen shot 2016-02-12 at 09 49 07

Here the config was off, but the cron job will still run.

AOE_Scheduler has a nice fix for this and it reschedules the job at the moment you change the configuration. It would be nice if Magento itself would at least remove the pending schedules on config change.

(1)
1 Comment
Not applicable

Comment from ajpevers, posted on GitHub Jun 17, 2016

@MomotenkoNatalia, @piotrekkaminski would you be open to a pull request on this issue?