#[derive(Clone, PartialEq, ::prost::Message)]
#[prost(skip_debug)]
pub struct TaskMessage {
#[prost(string, tag = "1")]
pub r#type: ::prost::alloc::string::String,
#[prost(bytes = "vec", tag = "2")]
pub payload: ::prost::alloc::vec::Vec<u8>,
#[prost(map = "string, string", tag = "15")]
pub headers: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, tag = "3")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub queue: ::prost::alloc::string::String,
#[prost(int32, tag = "5")]
pub retry: i32,
#[prost(int32, tag = "6")]
pub retried: i32,
#[prost(string, tag = "7")]
pub error_msg: ::prost::alloc::string::String,
#[prost(int64, tag = "11")]
pub last_failed_at: i64,
#[prost(int64, tag = "8")]
pub timeout: i64,
#[prost(int64, tag = "9")]
pub deadline: i64,
#[prost(string, tag = "10")]
pub unique_key: ::prost::alloc::string::String,
#[prost(string, tag = "14")]
pub group_key: ::prost::alloc::string::String,
#[prost(int64, tag = "12")]
pub retention: i64,
#[prost(int64, tag = "13")]
pub completed_at: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
#[prost(skip_debug)]
pub struct ServerInfo {
#[prost(string, tag = "1")]
pub host: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub pid: i32,
#[prost(string, tag = "3")]
pub server_id: ::prost::alloc::string::String,
#[prost(int32, tag = "4")]
pub concurrency: i32,
#[prost(map = "string, int32", tag = "5")]
pub queues: ::std::collections::HashMap<::prost::alloc::string::String, i32>,
#[prost(bool, tag = "6")]
pub strict_priority: bool,
#[prost(string, tag = "7")]
pub status: ::prost::alloc::string::String,
#[prost(message, optional, tag = "8")]
pub start_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(int32, tag = "9")]
pub active_worker_count: i32,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
#[prost(skip_debug)]
pub struct WorkerInfo {
#[prost(string, tag = "1")]
pub host: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub pid: i32,
#[prost(string, tag = "3")]
pub server_id: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub task_id: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub task_type: ::prost::alloc::string::String,
#[prost(bytes = "vec", tag = "6")]
pub task_payload: ::prost::alloc::vec::Vec<u8>,
#[prost(string, tag = "7")]
pub queue: ::prost::alloc::string::String,
#[prost(message, optional, tag = "8")]
pub start_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "9")]
pub deadline: ::core::option::Option<::prost_types::Timestamp>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
#[prost(skip_debug)]
pub struct SchedulerEntry {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub spec: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub task_type: ::prost::alloc::string::String,
#[prost(bytes = "vec", tag = "4")]
pub task_payload: ::prost::alloc::vec::Vec<u8>,
#[prost(string, repeated, tag = "5")]
pub enqueue_options: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "6")]
pub next_enqueue_time: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "7")]
pub prev_enqueue_time: ::core::option::Option<::prost_types::Timestamp>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
#[prost(skip_debug)]
pub struct SchedulerEnqueueEvent {
#[prost(string, tag = "1")]
pub task_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub enqueue_time: ::core::option::Option<::prost_types::Timestamp>,
}