Skip to main content

Run job

POST 

/metalakes/:metalake/jobs/runs

Starts a job from a job template and returns the new job in the queued status. Values in jobConf replace the matching {{name}} placeholders in the template.

Sign in with a bearer token or a local user's password; see Authentication.

Request​

Path Parameters

    metalake stringrequired

    The name of the metalake

Body

    jobTemplateName stringrequired

    The name of the job template to run

    jobConf

    object

    The job configuration for the job run

    property name* string

Responses​

The new job in the queued status, with its ID, template name, queue time and the resolved template that will be submitted.

Schema

    code int32

    Possible values: [0]

    Status code of the response

    job

    object

    A job object

    jobId stringrequired

    The unique identifier of the job

    jobTemplateName stringrequired

    The name of the job template used to create the job

    status stringrequired

    Possible values: [queued, started, failed, succeeded, cancelling, cancelled]

    The status of the job

    audit

    object

    required

    Audit information for a Gravitino resource.

    creator string

    The user who created the resource

    createTime date-time

    The time the resource was created

    lastModifier string

    The user who last modified the resource

    lastModifiedTime date-time

    The time the resource was last modified

    queuedAt date-timerequired

    The time when the job was queued for execution, same as the job's creation time

    startedAt date-timenullable

    The time when the job started execution, or null if the job has not started execution yet

    finishedAt date-timenullable

    The time when the job finished execution, or null if the job has not finished execution yet

    runtimeJobTemplate

    object

    nullable

    oneOf

    A job template object for shell jobs

    name stringrequired

    The name of the job template

    jobType stringrequired

    Possible values: [shell]

    The type of the job template

    comment stringnullable

    A comment about the job template

    executable stringrequired

    The executable command of the job template

    arguments string[]nullable

    The arguments of the job template

    environments

    object

    Configured string to string map of environment variables for the job template

    property name* string

    customFields

    object

    Configured string to string map of custom fields for the job template

    property name* string
    scripts string[]nullable

    The scripts of the job template

    audit

    object

    Audit information for a Gravitino resource.

    creator string

    The user who created the resource

    createTime date-time

    The time the resource was created

    lastModifier string

    The user who last modified the resource

    lastModifiedTime date-time

    The time the resource was last modified

Loading...