-
Notifications
You must be signed in to change notification settings - Fork 36
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
Fall back if scheduler access fails #214
Comments
@csadorf |
@kidrahahjo Yes, that would be very much appreciated. We will need to have at least one reviewer with access to the Bridges system, who can verify that the proposed solution works. |
@bdice @csadorf
|
@kidrahahjo The |
Thought so, I've replicated this example locally too. I will look into it. |
@bdice I can't access |
Line 1077 --> flow/project.py While debugging, I used a statement
While the results are not surprising to me, what I wonder is why do tests fail when instead of |
@kidrahahjo The code contents have all changed between your previous comment and now, because of #114 (a major change that was just merged). I am not sure that it is useful to answer your previous question at this point because of the scale of changes. I reviewed the error handling in this function and in the scheduler code, and I am not sure whether this is an issue that should be solved. Lines 1560 to 1587 in 1a01303
My main concern is that if we try to fall back to a "StandardEnvironment" behavior and allow those kinds of errors to pass with just a warning message, it may not be obvious to a user that their status checks, submission eligibility, etc. could be invalid because the scheduler was not queried correctly. That is, requiring users to pass @kidrahahjo Thanks for looking at this issue. I'm going to close it for now since I don't think there is any action to be taken. |
@bdice Okay. And also I have a question that will there be any alternative solution(in coming future maybe) for it that I can manage to solve? |
Description
I'm running on the Bridges cluster in a singularity container. I tried to check the project status but it wouldn't print any output because the scheduler is not accessible by a singularity container on a compute node. It works fine if I include
--ignore-errors
, but I'm not sure if this should be considered a legitimate error or not. I would expect the errors that are ignored with--ignore-errors
to occur during condition evaluation.One possible solutions is to fall back to StandardEnvironment (no scheduler) and check the status without interfacing with the scheduler.
To reproduce
python project.py status
Error output
System configuration
Please complete the following information:
The text was updated successfully, but these errors were encountered: