-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add NOMAD_JOB_ID and NOMAD_JOB_PARENT_ID env variables #8967
Conversation
3a071b8
to
2679f31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @02strich! Thank you for this PR! But I don't think we want to accept the NOMAD_JOB_VERSION
change. See my comments.
2679f31
to
24aa5eb
Compare
24aa5eb
to
276bff1
Compare
@tgross thank you for the feedback. I have updated this PR to remove the version and will take a different route for the version part. Would be great to get the remaining envs in (assuming they are safe). |
276bff1
to
f6792e1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @02strich! So it looks like in this update, you've added the NOMAD_DEPLOYMENT_ID
and NOMAD_JOB_PARENT_ID
. The deployment ID isn't fixed; see my note below. I think the NOMAD_JOB_PARENT_ID
is ok given that we're only setting the env var if there's info available.
f6792e1
to
939a39a
Compare
939a39a
to
60bf235
Compare
60bf235
to
8b3ed6c
Compare
Beforehand tasks and field replacements did not have access to the unique ID of their job or its parent. This adds this information as new environment variables.
8b3ed6c
to
e10fbf5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for being patient with the review process here @02strich!
This will get shipped with the upcoming 1.0-beta next week. |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
[Updated] Beforehand tasks and field replacements did not have access to the
unique ID of their job or information about its parent. This adds this information
as new environment variables.