pub struct Job {Show 21 fields
pub id: String,
pub client_id: String,
pub job_set_id: String,
pub queue: String,
pub namespace: String,
pub labels: HashMap<String, String>,
pub annotations: HashMap<String, String>,
pub required_node_labels: HashMap<String, String>,
pub owner: String,
pub queue_ownership_user_groups: Vec<String>,
pub compressed_queue_ownership_user_groups: Vec<u8>,
pub priority: f64,
pub pod_spec: Option<PodSpec>,
pub pod_specs: Vec<PodSpec>,
pub scheduling_resource_requirements: Option<ResourceRequirements>,
pub created: Option<Timestamp>,
pub ingress: Vec<IngressConfig>,
pub services: Vec<ServiceConfig>,
pub k8s_ingress: Vec<Ingress>,
pub k8s_service: Vec<Service>,
pub scheduler: String,
}Fields§
§id: String§client_id: String§job_set_id: String§queue: String§namespace: String§labels: HashMap<String, String>§annotations: HashMap<String, String>§required_node_labels: HashMap<String, String>§owner: String§queue_ownership_user_groups: Vec<String>§compressed_queue_ownership_user_groups: Vec<u8>§priority: f64§pod_spec: Option<PodSpec>👎Deprecated
Use PodSpecs instead
pod_specs: Vec<PodSpec>§scheduling_resource_requirements: Option<ResourceRequirements>Resource requests and limits necessary for scheduling the main pod of this job. The requests and limits herein are set to:
max(
sum across all containers,
max over all init containers,)
This is because containers run in parallel, whereas initContainers run serially. This field is populated automatically at submission. Submitting a job with this field already populated results in an error.
created: Option<Timestamp>§ingress: Vec<IngressConfig>Services can be provided either as Armada-specific config objects or as proper k8s objects. These options are exclusive, i.e., if either ingress or services is provided, then neither of k8s_ingress or k8s_service can be provided, and vice versa.
services: Vec<ServiceConfig>§k8s_ingress: Vec<Ingress>§k8s_service: Vec<Service>§scheduler: StringIndicates which scheduler should manage this job. If empty, the default scheduler is used.
Trait Implementations§
Source§impl Message for Job
impl Message for Job
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for Job
Auto Trait Implementations§
impl Freeze for Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnsafeUnpin for Job
impl UnwindSafe for Job
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request