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

Default for --work-dir #47

Open
marcodelapierre opened this issue Jul 12, 2022 · 3 comments
Open

Default for --work-dir #47

marcodelapierre opened this issue Jul 12, 2022 · 3 comments
Milestone

Comments

@marcodelapierre
Copy link
Contributor

The current default is ~/work.

I am wondering whether the user experience might benefit from using instead $TW_AGENT_WORK.
It seems to me like this variable is used as default work directory within the Tower web interface; hence, adopting it for the Agent would align the two, increase consistency, and in turn user friendliness (hopefully).

Disclaimer: I have been using Nextflow for years, but have just started poking around with Tower!

@jordeu
Copy link
Member

jordeu commented Aug 1, 2022

Currently at Tower the variable $TW_AGENT_WORK do not refer to any environment variable, it refers to the value that the user has set the --work-dir parameter when launching the Tower Agent. Given that several users can use the same Compute Environment with his own agent, this value can be different for each user.

When Tower Agent is run without --work-dir parameter then it defaults to ~/work. Do you propose to default to TW_AGENT_WORK environment variable if defined?

@marcodelapierre
Copy link
Contributor Author

yes exactly, I am suggesting TW_AGENT_WORK as default, if defined within the shell session, and otherwise fall back to ~/work. --work-dir would still be available to override the default

@jordeu
Copy link
Member

jordeu commented Aug 1, 2022

I like this idea. I'll implement ASAP.

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