-
Notifications
You must be signed in to change notification settings - Fork 116
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
Myjobs: Add ENV override for showing job array #2327
Conversation
Hi, thank you for your contribution! While what you have is OK - It's probably better to put this into the Here's an example (also using a ondemand/apps/myjobs/config/configuration_singleton.rb Lines 57 to 59 in da4af66
def self.show_job_arrays?
return false if Configuration.show_job_arrays?
OODClusters.any? { |cluster| cluster.job_adapter.supports_job_arrays? }
end |
b42cd8e
to
b0203b9
Compare
Thank you for the tips and quick response Due to the to_bool behavior an empty string (unset variable) would lead to a false causing the default behavior to be not showing the job array; i changed the variable to be a hide, to make sure the default behavior would be to show the job array. Also, where in the docs are the variables kept so I can update it? |
b0203b9
to
560dd68
Compare
Docs are held in another repository. You should probably put it under this section: So it'll show up here: |
Hi, just for confirmation. Are there any more changes required to merge this commit? |
A thousand apologies for not updating you - I was at a conference last week so I couldn't get to it. I don't believe there are updates I require, I just need to find the time to look it over a second time. I should be able to get it today or tomorrow. |
560dd68
to
3096507
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.
Thanks again for the contribution. Once the tests pass, I'll merge this. I'll also backport it too because we're releasing 2.0.29 out soon.
Co-authored-by: Louis <[email protected]>
Hi,
We are exploring ondemand at Kuleuven and we would like to not show the job array in the myjobs app due to a competing implementation.
This pr would add an environment variable acting as an override for showing the job array.
Is this the best way to go about it?
Thank you in advance.
┆Issue is synchronized with this Asana task by Unito