Skip to content

Job scheduled form another cron job does not always start #362

Open
@juvies

Description

@juvies

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions