Skip to content

Commit

Permalink
chore: Remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
leo91000 committed Dec 26, 2023
1 parent 5afcbdd commit 31706a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/runner.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::fmt::Debug;
use std::future::Future;
use std::pin::Pin;
use std::sync::Arc;
use std::time::Duration;
use std::{collections::HashMap, time::Instant};

Expand Down Expand Up @@ -206,8 +205,8 @@ async fn run_job(job: &Job, worker: &Worker, source: &StreamSource) -> Result<()
res.map_err(RunJobError::TaskPanic).and_then(|res| res.map_err(RunJobError::TaskError))
}
_ = shutdown_timeout => {
warn!(task_identifier, payload, job_id = job.id(), "Job interrupted by shutdown signal after 5 seconds timeout");
abort_handle.abort();
warn!(task_identifier, payload, job_id = job.id(), "Job interrupted by shutdown signal after 5 seconds timeout");
Err(RunJobError::TaskAborted)
}
}?;
Expand Down

0 comments on commit 31706a8

Please sign in to comment.