Cron job starts as planned, does some work and at the end schedules new cron jobs to start after 2 minutes.
Sometimes these additional jobs start executing and sometimes scheduled time goes by and jobs do not start.
I tried to set start time with 15, 20 minutes delay, but they still do not always start.
When cron expression is updated directly in cron.job table then job starts on time.
I suspect that it could be caching issue. Something from context of first job is used when sub-jobs are scheduled.
When job cron expression is updated manually then cache is invalidated and job is picked up.
Cron job starts as planned, does some work and at the end schedules new cron jobs to start after 2 minutes. Sometimes these additional jobs start executing and sometimes scheduled time goes by and jobs do not start. I tried to set start time with 15, 20 minutes delay, but they still do not always start.
When cron expression is updated directly in cron.job table then job starts on time. I suspect that it could be caching issue. Something from context of first job is used when sub-jobs are scheduled. When job cron expression is updated manually then cache is invalidated and job is picked up.