Skip to content

GlueClient.start_job_run

rboto-glue==0.4.0 · Service index · Types

Model summary (excerpt): Starts a job run using a job definition.

Install and imports

python -m pip install "rboto[glue]==0.4.0"
from rboto import GlueClient
from rboto_glue.types import (
    ExecutionClass,
    NotificationProperty,
    StartJobRunOutput,
    WorkerType,
)

Signature

async def start_job_run(
    *,
    job_name: str,
    job_run_queuing_enabled: bool | None = None,
    job_run_id: str | None = None,
    arguments: dict[str, str] | None = None,
    allocated_capacity: int | None = None,
    timeout: int | None = None,
    max_capacity: float | None = None,
    security_configuration: str | None = None,
    notification_property: NotificationProperty | None = None,
    worker_type: WorkerType | None = None,
    number_of_workers: int | None = None,
    execution_class: ExecutionClass | None = None,
    execution_role_session_policy: str | None = None,
) -> StartJobRunOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
job_name Yes The name of the job definition to use.
job_run_queuing_enabled No Specifies whether job run queuing is enabled for the job run. A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.
job_run_id No The ID of a previous JobRun to retry.
arguments No The job arguments associated with this run. For this job run, they replace the default arguments set in the job definition itself. You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes. Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other...
allocated_capacity No This field is deprecated. Use MaxCapacity instead. The number of Glue data processing units (DPUs) to allocate to this JobRun. You can allocate a minimum of 2 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page .
timeout No The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job. Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception. When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue...
max_capacity No For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page . For Glue version 2.0+ jobs, you cannot specify a Maximum capacity ....
security_configuration No The name of the SecurityConfiguration structure to be used with this job run.
notification_property No Specifies configuration properties of a job run notification.
worker_type No The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs. For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume...
number_of_workers No The number of workers of a defined workerType that are allocated when a job runs.
execution_class No Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources. The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary. Only jobs with Glue version 3.0 and above and command type glueetl will be allowed...
execution_role_session_policy No This inline session policy to the StartJobRun API allows you to dynamically restrict the permissions of the specified execution role for the scope of the job, without requiring the creation of additional IAM roles.

Output

StartJobRunOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
job_run_id str | None Always present —

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

ExecutionClass, NotificationProperty, StartJobRunOutput, WorkerType

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_glue.exceptions:

ConcurrentRunsExceededError, EntityNotFoundError, InternalServiceError, InvalidInputError, OperationTimeoutError, ResourceNumberLimitExceededError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model