gravitino.api.job.job_template.JobType¶
- class gravitino.api.job.job_template.JobType(value)¶
Bases:
Enum
JobType is an enum to define the type of the job.
Gravitino supports different types of jobs, such as Spark and Shell. The job type is required to determine the runtime environment for executing the job.
- __init__()¶
Methods
job_type_serialize
(job_type)Serializes the JobType to a string.
job_type_deserialize
(job_type_str)Deserializes a string to a JobType.
Attributes
- SHELL = 'shell'¶
job type for executing shell commands
- SPARK = 'spark'¶
job type for executing Spark jobs