Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timer with offset? #46

Open
hemna opened this issue Apr 23, 2020 · 1 comment
Open

Timer with offset? #46

hemna opened this issue Apr 23, 2020 · 1 comment

Comments

@hemna
Copy link

hemna commented Apr 23, 2020

I have a series of jobs that I kick off with the same timer, but I want to be able to start
those jobs with an offset from the initial timer. Say I have 6 jobs, and I want to start the first job at
1:00am, the next loop start at 1:00am + 30 minutes, the next loop starts a job with the same timer with offset 1 hour, and so on.

Do I have to create a separate timer resource for each of those?, or can I use the same timer starting at 1:00am with an offset?

@owenfarrell
Copy link
Member

I think the key question is whether or not your jobs are scheduled on a fixed period, or a fixed delay.

If your jobs are triggered on a fixed period, I think you could specify both an interval and a time range (i.e. {interval: 30m, start: 1:00 AM, stop: 3:45 AM}). But in this scenario, you need to be careful about the potential for overlapping runs (i.e. use serial_groups where necessary).

If your jobs run on a fixed delay, the conclusion on #43 is that a task is really what's needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants