Skip to content

Multi-cron job or multi-concurrency jobs #1036

@sierrodc

Description

@sierrodc

I would like to run a single unique activity (executable) in a cluster but with many schedules.
I.e:

  • every minute during 11th hour of every day
  • every 30minutes for the rest of the day

This is something I cannot write with a single cron expression (let me know if I'm wrong).
What I would like is to have multiple cron expression for a single job.

As an alternative, I can create multiple jobs with differnet cron expression. The problem is that these two jobs are exactly the same and I don't want that at 11:30 the activity is executed twice. (ps: the activity may last 1h, so jobs may overlaps even if I remove hour 11 from the second cron expression).
In this case I would like something like "concurrency group", so that the set { "job_minute", "job_half_hour" } cannot run both together.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions