-
Notifications
You must be signed in to change notification settings - Fork 23
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
New "resubmit" mechanism #649
Conversation
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.
This is a pretty cool idea, I like it!
@@ -130,6 +131,8 @@ impl Output for Quiet { | |||
) { | |||
} | |||
|
|||
fn print_task_ids(&self, _job_task_ids: Vec<(JobId, IntArray)>) {} |
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.
I think that here we could write one ID per line? This mode should really be renamed from quiet to something like bash-processable
:)
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.
I have changed it. if there are 2 or more jobs, it prints also job ids.
.filter(|info| !is_terminated(info)) | ||
.map(|info| info.n_tasks) | ||
.sum(); | ||
let mut remaining_job_ids: BTreeSet<JobId> = jobs |
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.
Any particular reason why Set
was switched to BTreeSet
and why the Vec
was changed to a slice?
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.
Because we need to random removes & sorted iterator for creating IntArray.
The preparation for removing resubmit.
It allows "resubmit" via:
(This PR does not removes resubmit yet)