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

When a non-Analysis role is given, make sure we set BEARER_TOKEN_FILE (and thus BEARER_TOKEN) correctly in wrapper scripts #30

Closed
shreyb opened this issue Mar 23, 2022 · 0 comments · Fixed by #32
Assignees
Labels
bug Something isn't working

Comments

@shreyb
Copy link
Collaborator

shreyb commented Mar 23, 2022

When a non-Analysis role is given, make sure we set BEARER_TOKEN_FILE (and thus BEARER_TOKEN) correctly in wrapper scripts. For example, for role production, experiment dune, the jobsub_submit line will be something like:

jobsub_submit -G dune --role production <args> file:///<path>/<to>/<executable>

In this case, in the wrapper scripts, (like https://github.com/marcmengel/jobsub_lite/blob/master/templates/simple/simple.sh#L10), we need to make sure that not only is the group templated, but the role. The convention is that the bearer token file for a production token will be named something like dune_production.use. So in general, _.use.

This should be pretty similar to the changes that had to be made for #13 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant