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

Job offset start parameter #21

Open
KoenDierckx opened this issue Mar 12, 2021 · 1 comment
Open

Job offset start parameter #21

KoenDierckx opened this issue Mar 12, 2021 · 1 comment

Comments

@KoenDierckx
Copy link

I'm using timeloop with two jobs with the same interval.
This works fine, but they always start at the same time, causing their logs to overlap

An offset parameter for the start of the job would solve this issue.
So the second job could initially start 10 seconds later as the first job

@answerquest
Copy link

Sharing my workaround: Set the second job's interval as 9 seconds. And inside the function, put time.sleep(1) at beginning.

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