Execution related settings, like retry and service_account.
Attributes
Name
Description
args
MutableMapping[str, str]
Optional. The arguments to pass to the task. The args can
use placeholders of the format ${placeholder} as part of
key/value string. These will be interpolated before passing
the args to the driver. Currently supported placeholders:
- ${task_id}
- ${job_time} To pass positional args, set the key as
TASK_ARGS. The value should be a comma-separated string
of all the positional arguments. To use a delimiter other
than comma, refer to
https://cloud.google.com/sdk/gcloud/reference/topic/escaping.
In case of other keys being present in the args, then
TASK_ARGS will be passed as the last argument.
service_account
str
Required. Service account to use to execute a
task. If not provided, the default Compute
service account for the project is used.
project
str
Optional. The project in which jobs are run. By default, the
project containing the Lake is used. If a project is
provided, the
ExecutionSpec.service_account
must belong to this project.
max_job_execution_lifetime
google.protobuf.duration_pb2.Duration
Optional. The maximum duration after which
the job execution is expired.
kms_key
str
Optional. The Cloud KMS key to use for encryption, of the
form:
projects/{project_number}/locations/{location_id}/keyRings/{key-ring-name}/cryptoKeys/{key-name}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Class ExecutionSpec (2.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.11.0 (latest)](/python/docs/reference/dataplex/latest/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [2.10.2](/python/docs/reference/dataplex/2.10.2/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [2.9.0](/python/docs/reference/dataplex/2.9.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [2.8.0](/python/docs/reference/dataplex/2.8.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [2.7.1](/python/docs/reference/dataplex/2.7.1/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [2.6.0](/python/docs/reference/dataplex/2.6.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [2.5.0](/python/docs/reference/dataplex/2.5.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [2.4.0](/python/docs/reference/dataplex/2.4.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [2.3.1](/python/docs/reference/dataplex/2.3.1/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [2.2.2](/python/docs/reference/dataplex/2.2.2/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [2.1.0](/python/docs/reference/dataplex/2.1.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [2.0.1](/python/docs/reference/dataplex/2.0.1/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.13.0](/python/docs/reference/dataplex/1.13.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.12.3](/python/docs/reference/dataplex/1.12.3/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.11.0](/python/docs/reference/dataplex/1.11.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.10.0](/python/docs/reference/dataplex/1.10.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.9.0](/python/docs/reference/dataplex/1.9.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.8.1](/python/docs/reference/dataplex/1.8.1/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.7.0](/python/docs/reference/dataplex/1.7.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.6.2](/python/docs/reference/dataplex/1.6.2/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.5.1](/python/docs/reference/dataplex/1.5.1/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.4.3](/python/docs/reference/dataplex/1.4.3/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.3.0](/python/docs/reference/dataplex/1.3.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.2.0](/python/docs/reference/dataplex/1.2.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.1.3](/python/docs/reference/dataplex/1.1.3/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [1.0.1](/python/docs/reference/dataplex/1.0.1/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [0.2.1](/python/docs/reference/dataplex/0.2.1/google.cloud.dataplex_v1.types.Task.ExecutionSpec)\n- [0.1.0](/python/docs/reference/dataplex/0.1.0/google.cloud.dataplex_v1.types.Task.ExecutionSpec) \n\n ExecutionSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nExecution related settings, like retry and service_account.\n\nClasses\n-------\n\n### ArgsEntry\n\n ArgsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)\n\nThe abstract base class for a message."]]