[ENH]: Specify which shell to use when using junifer queue #273
Labels
No labels
CRITICAL
Stale
WIP
bug
concept
coordinate
dataset
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
maintenance
maps
marker
mask
on hold
parcellation
preprocess
question
ready
storage
template-space
triage
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
juaml/junifer!273
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/queue-shell"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Are you requiring a new dataset or marker?
Which feature do you want to include?
I would like to be able to specify the shell that junifer uses to submit jobs. For some reason when using bash I could not get jobs to work. When using zsh by manually changing it, it seemed to work (maybe something from with my bash environment, maybe magic or maybe coincidence). Either way I think this could be a desirable feature. What do you think?
How do you imagine this integrated in junifer?
as a param that prints different text
Do you have a sample code that implements this outside of junifer?
No response
Anything else to say?
No response
This could be quite useful in my opinion.
@LeSasse Can you check if the branch solves your issue?
would it be better to do
/usr/bin/env {shell}?@ -0,0 +1,23 @@#!/usr/bin/env zshwould it be viable to have the
resas a plaintxtcontaining a text with variable placeholders that get replaced by fill values for a specific shell or are the scripts for the different shell vastly different? just wondering if its desirable avoiding 1 script per shell.@ -0,0 +1,22 @@#!/usr/bin/env zshnice
The standard advice that I see in the wild is to use
#!/bin/<shell>. Is there a particular reason for your suggestion?@ -0,0 +1,23 @@#!/usr/bin/env zshWe would need the file to be created on-demand for that and not have it as a file distributed with the package. I wanted a single file but for simplicity made it separate.
Running a command through /usr/bin/env has the benefit of looking for whatever the default version of the program is in your current environment.
This way, you don't have to look for it in a specific place on the system, as those paths may be in different locations on different systems. As long as it's in your path, it will find it.
But at the end of the day it isnt really going to make a difference.
That's a fair argument if you want to have control over the shell used. Would you say we extend it to
run_{conda,venv}.{bash,zsh}as well?Codecov Report
All modified and coverable lines are covered by tests ✅
Additional details and impacted files
100.00% <ø> (ø)Flags with carried forward coverage won't be shown. Click here to find out more.
Yes, i think so, but didnt wanna duplicate the comment.
Will check it
I think this branch needs a rebase: the dag files still use single quotes and submitting therefore fails.
I see that the quotes are proper in
dag, can you try rebasing your local branch?thats quite odd because i actually cloned and checked out this branch just minutes before that comment, and after i rebased it locally it worked, but before, no.
Ah no, this was supposed to go on the other PR #161 so thats the one that would need rebasing
Tested this now and it works.