-
Notifications
You must be signed in to change notification settings - Fork 29
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
PBS alloc checker #381
base: main
Are you sure you want to change the base?
PBS alloc checker #381
Conversation
3d0501f
to
be617d4
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.
The check has to be performed on the server, not on the client, because the client might not even have PBS available (or it might be a different PBS than on the server). Therefore we also need to return the error in a different way rather than logging it.
Currently, returning errors is quite basic in the client/server RPC, it would be really nice to use e.g. tarpc
or some better RPC approach to solve this first.
match get_value_by_key_json(queue, String::from(backlog)) { | ||
Ok(value) => Some( | ||
value | ||
.to_string() |
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.
Why is this is_numeric
filter here? What data is returned by PBS here?
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.
Backlog has specific format in our qstat: "max_queued":"[u:PBS_GENERIC=5]"
eda6703
to
ec9a6e0
Compare
5d6dab7
to
167715c
Compare
5de53cd
to
4f5c720
Compare
Closes: #174