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

#42: Expose Work ID to script environment #43

Merged
merged 3 commits into from
May 6, 2021

Conversation

AStevensTaylor
Copy link
Contributor

@AStevensTaylor AStevensTaylor commented May 5, 2021

This exposes the Work.ID to the script.

(resolves #42) Doesn't include hook_name suggestion, as that should be exposed by argv[0] to get the called process name.

pkg/worker/work_runner.go Outdated Show resolved Hide resolved
@ncarlier
Copy link
Owner

ncarlier commented May 5, 2021

Many thanks for this PR!

Change to lowercase for bash consistency.

Co-authored-by: Nicolas Carlier <n.carlier@nunux.org>
@ncarlier ncarlier merged commit d3777a7 into ncarlier:master May 6, 2021
@ncarlier
Copy link
Owner

ncarlier commented May 6, 2021

Thanks you!

@AStevensTaylor AStevensTaylor deleted the feature/42-Work-ID-Expose branch May 6, 2021 07:21
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

Successfully merging this pull request may close these issues.

Expose Work.ID to the script through environment variables
2 participants