You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
The DBLINK solution did not resolve the issue, as the problem reappears after some time.
Upon further debugging, I observed that the job cache is not being refreshed and the RefreshTaskHash method is not invoked. The InvalidateJobCacheCallback is still being triggered frequently and setting CronJobCacheValid to false, which should signal the main loop to call RefreshTaskHash. However, in the main loop, CronJobCacheValid always remains true, as though it is operating on a different instance.
As a temporary fix, I decided to bypass CronJobCacheValid entirely and call RefreshTaskHash at regular intervals.
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.
The text was updated successfully, but these errors were encountered: