Skip to content

Commit

Permalink
Fixed Python API
Browse files Browse the repository at this point in the history
  • Loading branch information
spirali committed Dec 12, 2023
1 parent a7caf08 commit 1657ec0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions crates/pyhq/src/client/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,8 @@ pub fn wait_for_jobs_impl(
let mut response: JobInfoResponse;

loop {
let selector = IdSelector::Specific(IntArray::from_ids(
remaining_job_ids.iter().copied().collect(),
));
let selector =
IdSelector::Specific(IntArray::from_ids(remaining_job_ids.iter().copied()));

response = hyperqueue::rpc_call!(
ctx.session.connection(),
Expand Down Expand Up @@ -311,7 +310,7 @@ pub fn get_failed_tasks_impl(
) -> PyResult<FailedTaskMap> {
run_future(async move {
let message = FromClientMessage::JobDetail(JobDetailRequest {
job_id_selector: IdSelector::Specific(IntArray::from_ids(job_ids)),
job_id_selector: IdSelector::Specific(IntArray::from_ids(job_ids.into_iter())),
task_selector: Some(TaskSelector {
id_selector: TaskIdSelector::All,
status_selector: TaskStatusSelector::Specific(vec![Status::Failed]),
Expand Down

0 comments on commit 1657ec0

Please sign in to comment.