Job represents a discrete unit of work that can be scheduled and executed. It carries all the necessary information to define the nature of the work, how it should be executed, and the resources it requires.
- Key: Architecture
- Key: region
(string : <optional>): A logical name to refer to the job. Defaults to job ID.
(string: "default"): The namespace in which the job is running.
ClientIDis used as a namespace in the public demo network.
(string: <required>): The type of the job, such as
service. You can learn more about the supported jobs types in the Job Types guide.
(int: 0): Determines the scheduling priority.
(int: <required): Number of replicas to be scheduled. This is only applicable for jobs of type
(Meta : nil): Arbitrary metadata associated with the job.
(Label : nil): Arbitrary labels associated with the job for filtering purposes.
(Constraint : nil): These are selectors which must be true for a compute node to run this job.
(Task : <required>):: Task associated with the job, which defines a unit of work within the job. Today we are only supporting single task per job, but with future plans to extend this.
The following parameters are generated by the server and should not be set directly.
(string): A unique identifier assigned to this job. It's auto-generated by the server and should not be set directly. Used for distinguishing between jobs with similar names.
(State): Represents the current state of the job.
(int): A monotonically increasing version number incremented on job specification update.
(int): A monotonically increasing revision number incremented on each update to the job's state or specification.
(int): Timestamp of job creation.
(int): Timestamp of last job modification.