Closed ComLock closed 5 years ago
@vbradnitski plz make sure we have a test for this in the lib
Works with unschedule and application stop.
2019-06-12 14:24:45,432 INFO c.e.x.c.i.app.ApplicationServiceImpl - Application [com.enonic.app.explorer] started successfully
2019-06-12 14:24:59,100 INFO com.enonic.app.explorer - (/lib/explorer/collection/reschedule.js) Unscheduling 0bcf92e0-707f-4493-b569-e6c7463d476e:0
2019-06-12 14:24:59,124 INFO com.enonic.app.explorer - (/lib/explorer/collection/reschedule.js) Scheduling 0bcf92e0-707f-4493-b569-e6c7463d476e:0
2019-06-12 14:24:59,209 INFO c.e.l.c.scheduler.JobSchedulerImpl - Added job: 0bcf92e0-707f-4493-b569-e6c7463d476e:0 @ every minute
2019-06-12 14:25:00,012 INFO c.e.lib.cron.runner.JobRunnerImpl - Executing job [0bcf92e0-707f-4493-b569-e6c7463d476e:0]
2019-06-12 14:25:00,358 INFO c.e.lib.cron.runner.JobRunnerImpl - Executed job [0bcf92e0-707f-4493-b569-e6c7463d476e:0] in 342 ms
2019-06-12 14:25:09,118 INFO com.enonic.app.explorer - (/lib/explorer/collection/reschedule.js) Unscheduling 0bcf92e0-707f-4493-b569-e6c7463d476e:0
2019-06-12 14:25:09,119 INFO c.e.l.c.scheduler.JobSchedulerImpl - Removed job: 0bcf92e0-707f-4493-b569-e6c7463d476e:0 @ every minute
2019-06-12 14:26:18,150 INFO com.enonic.app.explorer - (/lib/explorer/collection/reschedule.js) Unscheduling 0bcf92e0-707f-4493-b569-e6c7463d476e:0
2019-06-12 14:26:18,150 INFO com.enonic.app.explorer - (/lib/explorer/collection/reschedule.js) Scheduling 0bcf92e0-707f-4493-b569-e6c7463d476e:0
2019-06-12 14:26:18,160 INFO c.e.l.c.scheduler.JobSchedulerImpl - Added job: 0bcf92e0-707f-4493-b569-e6c7463d476e:0 @ every minute
2019-06-12 14:27:00,000 INFO c.e.lib.cron.runner.JobRunnerImpl - Executing job [0bcf92e0-707f-4493-b569-e6c7463d476e:0]
2019-06-12 14:27:00,006 INFO c.e.lib.cron.runner.JobRunnerImpl - Executed job [0bcf92e0-707f-4493-b569-e6c7463d476e:0] in 5 ms
2019-06-12 14:27:04,885 INFO c.e.l.c.scheduler.JobSchedulerImpl - Removed job: 0bcf92e0-707f-4493-b569-e6c7463d476e:0 @ every minute
2019-06-12 14:27:04,890 INFO c.e.x.c.i.app.ApplicationServiceImpl - Application [com.enonic.app.explorer] stopped successfully
There used to be a log message on unschedule, same when stopping an app. Now, even though I run unschedule, the cron job continues to run.
Perhaps this problem only exist on Enonic XP 7, which I now have upgraded too.
I'm using the current master branch.