mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2024-10-31 22:59:02 +00:00
Remove dependency on tracing-futures
This commit is contained in:
parent
51418ced0e
commit
dc3f7b2c62
6 changed files with 4 additions and 10 deletions
|
@ -16,7 +16,6 @@ async-trait = "0.1.24"
|
|||
background-jobs-core = { version = "0.17.0", path = "../jobs-core" }
|
||||
metrics = "0.22.0"
|
||||
tracing = "0.1"
|
||||
tracing-futures = "0.2"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
thiserror = "1.0"
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
use crate::Server;
|
||||
use background_jobs_core::CachedProcessorMap;
|
||||
use std::future::Future;
|
||||
use tracing::Span;
|
||||
use tracing_futures::Instrument;
|
||||
use tracing::{Instrument, Span};
|
||||
use uuid::Uuid;
|
||||
|
||||
struct LocalWorkerStarter<State: Clone + 'static, Extras: 'static> {
|
||||
|
|
|
@ -21,7 +21,6 @@ event-listener = "4"
|
|||
metrics = "0.22.0"
|
||||
time = { version = "0.3", features = ["serde-human-readable"] }
|
||||
tracing = "0.1"
|
||||
tracing-futures = "0.2.5"
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
thiserror = "1.0"
|
||||
|
|
|
@ -3,8 +3,7 @@ use anyhow::Error;
|
|||
use serde::{de::DeserializeOwned, ser::Serialize};
|
||||
use serde_json::Value;
|
||||
use std::{future::Future, pin::Pin, time::SystemTime};
|
||||
use tracing::Span;
|
||||
use tracing_futures::Instrument;
|
||||
use tracing::{Instrument, Span};
|
||||
|
||||
/// The Job trait defines parameters pertaining to an instance of background job
|
||||
///
|
||||
|
|
|
@ -4,8 +4,7 @@ use std::{
|
|||
collections::HashMap, future::Future, panic::AssertUnwindSafe, pin::Pin, sync::Arc,
|
||||
time::Instant,
|
||||
};
|
||||
use tracing::Span;
|
||||
use tracing_futures::Instrument;
|
||||
use tracing::{Instrument, Span};
|
||||
use uuid::Uuid;
|
||||
|
||||
/// A generic function that processes a job
|
||||
|
|
|
@ -7,8 +7,7 @@ use std::{
|
|||
pin::Pin,
|
||||
task::{Context, Poll},
|
||||
};
|
||||
use tracing::Span;
|
||||
use tracing_futures::Instrument;
|
||||
use tracing::{Instrument, Span};
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||
/// The type produced when a task is dropped before completion as a result of being deliberately
|
||||
|
|
Loading…
Reference in a new issue