Skip to content

CreateJobRequest

Source code in docs_src/capo_deadline/types/create_job_request.py
class CreateJobRequest(TypedDict, closed=True):
    farm_id: "capo_deadline.types.farm_id.FarmId"
    """<p>The farm ID of the farm to connect to the job.</p>"""
    queue_id: "capo_deadline.types.queue_id.QueueId"
    """<p>The ID of the queue that the job is submitted to.</p>"""
    client_token: NotRequired["capo_deadline.types.client_token.ClientToken"]
    """<p>The unique token which the server uses to recognize retries of the same request.</p>"""
    template: NotRequired["capo_deadline.types.job_template.JobTemplate"]
    """<p>The job template to use for this job.</p>"""
    template_type: NotRequired["capo_deadline.types.job_template_type.JobTemplateType"]
    """<p>The file type for the job template.</p>"""
    priority: "capo_deadline.types.job_priority.JobPriority"
    """<p>The priority of the job. The highest priority (first scheduled) is 100. When two jobs have the same priority, the oldest job is scheduled first.</p>"""
    parameters: NotRequired["capo_deadline.types.job_parameters.JobParameters"]
    """<p>The parameters for the job.</p>"""
    attachments: NotRequired["capo_deadline.types.attachments.Attachments"]
    """<p>The attachments for the job. Attach files required for the job to run to a render job.</p>"""
    storage_profile_id: NotRequired[
        "capo_deadline.types.storage_profile_id.StorageProfileId"
    ]
    """<p>The storage profile ID for the storage profile to connect to the job.</p>"""
    target_task_run_status: "capo_deadline.types.create_job_target_task_run_status.CreateJobTargetTaskRunStatus"
    """<p>The initial job status when it is created. Jobs that are created with a <code>SUSPENDED</code> status will not run until manually requeued.</p>"""
    max_failed_tasks_count: (
        "capo_deadline.types.max_failed_tasks_count.MaxFailedTasksCount"
    )
    """<p>The number of task failures before the job stops running and is marked as <code>FAILED</code>.</p>"""
    max_retries_per_task: "capo_deadline.types.max_retries_per_task.MaxRetriesPerTask"
    """<p>The maximum number of retries for each task.</p>"""
    max_worker_count: NotRequired["capo_deadline.types.max_worker_count.MaxWorkerCount"]
    """<p>The maximum number of worker hosts that can concurrently process a job. When the <code>maxWorkerCount</code> is reached, no more workers will be assigned to process the job, even if the fleets assigned to the job's queue has available workers.</p> <p>You can't set the <code>maxWorkerCount</code> to 0. If you set it to -1, there is no maximum number of workers.</p> <p>If you don't specify the <code>maxWorkerCount</code>, Deadline Cloud won't throttle the number of workers used to process the job.</p>"""
    source_job_id: NotRequired["capo_deadline.types.job_id.JobId"]
    """<p>The job ID for the source job.</p>"""
    name_override: NotRequired["capo_deadline.types.job_name.JobName"]
    """<p>A custom name to override the job name derived from the job template.</p>"""
    description_override: NotRequired[
        "capo_deadline.types.job_description_override.JobDescriptionOverride"
    ]
    """<p>A custom description to override the job description derived from the job template.</p>"""
    tags: NotRequired["capo_deadline.types.tags.Tags"]
    """<p>The tags to add to your job. Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.</p>"""

attachments instance-attribute

attachments: NotRequired[Attachments]

The attachments for the job. Attach files required for the job to run to a render job.

client_token instance-attribute

client_token: NotRequired[ClientToken]

The unique token which the server uses to recognize retries of the same request.

description_override instance-attribute

description_override: NotRequired[JobDescriptionOverride]

A custom description to override the job description derived from the job template.

farm_id instance-attribute

farm_id: FarmId

The farm ID of the farm to connect to the job.

max_failed_tasks_count instance-attribute

max_failed_tasks_count: MaxFailedTasksCount

The number of task failures before the job stops running and is marked as FAILED.

max_retries_per_task instance-attribute

max_retries_per_task: MaxRetriesPerTask

The maximum number of retries for each task.

max_worker_count instance-attribute

max_worker_count: NotRequired[MaxWorkerCount]

The maximum number of worker hosts that can concurrently process a job. When the maxWorkerCount is reached, no more workers will be assigned to process the job, even if the fleets assigned to the job's queue has available workers.

You can't set the maxWorkerCount to 0. If you set it to -1, there is no maximum number of workers.

If you don't specify the maxWorkerCount, Deadline Cloud won't throttle the number of workers used to process the job.

name_override instance-attribute

name_override: NotRequired[JobName]

A custom name to override the job name derived from the job template.

parameters instance-attribute

parameters: NotRequired[JobParameters]

The parameters for the job.

priority instance-attribute

priority: JobPriority

The priority of the job. The highest priority (first scheduled) is 100. When two jobs have the same priority, the oldest job is scheduled first.

queue_id instance-attribute

queue_id: QueueId

The ID of the queue that the job is submitted to.

source_job_id instance-attribute

source_job_id: NotRequired[JobId]

The job ID for the source job.

storage_profile_id instance-attribute

storage_profile_id: NotRequired[StorageProfileId]

The storage profile ID for the storage profile to connect to the job.

tags instance-attribute

tags: NotRequired[Tags]

The tags to add to your job. Each tag consists of a tag key and a tag value. Tag keys and values are both required, but tag values can be empty strings.

target_task_run_status instance-attribute

target_task_run_status: CreateJobTargetTaskRunStatus

The initial job status when it is created. Jobs that are created with a SUSPENDED status will not run until manually requeued.

template instance-attribute

template: NotRequired[JobTemplate]

The job template to use for this job.

template_type instance-attribute

template_type: NotRequired[JobTemplateType]

The file type for the job template.