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

Enforce UTC TZ on server side for periodic jobs #1072

Closed
albertogg opened this issue Apr 12, 2016 · 2 comments
Closed

Enforce UTC TZ on server side for periodic jobs #1072

albertogg opened this issue Apr 12, 2016 · 2 comments

Comments

@albertogg
Copy link

Nomad version

Nomad v0.3.1

Issue

As described in the nomad google group thread, the output of running periodic job can become a little confusing because of the TZ. Bringing back the example of the thread: If I need to run a job every day at 16:00 hours UTC and knowing that my nomad server is running with UTC TZ I imagine that if I do this I'll get the job running in that TZ:

  periodic {
    cron             = "0 0 16 * * * *"
    prohibit_overlap = true
  }

When I running the job from my local machine that it's not UTC I'll get:

nomad run some-periodic-job.nomad
Job registration successful
Approximate next launch time: 2016-04-08 16:00:00 -0430 VET

And that's not what I want. I end up running the job like this just to be sure I was setting it correctly even though it was set correctly:

TZ=UTC nomad run some-periodic-job.nomad
Job registration successful
Approximate next launch time: 2016-04-09 16:00:00 +0000 UTC

As @dadgar said "It may make sense to enforce the TZ as UTC on server side and then the client can make a similar correction." for that reason I'm filing the issue.

Thanks!

@albertogg
Copy link
Author

Thanks so much!

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants