Class Runnable (0.12.0) Stay organized with collections Save and categorize content based on your preferences.
Runnable(mapping=None,*,ignore_unknown_fields=False,**kwargs)Runnable describes instructions for executing a specificscript or container as part of a Task.
This message hasoneof_ fields (mutually exclusive fields).For each oneof, at most one member field can be set at the same time.Setting any member of the oneof automatically clears all othermembers.
.. _oneof:https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Attributes | |
|---|---|
| Name | Description |
container | google.cloud.batch_v1.types.Runnable.ContainerContainer runnable. This field is a member of oneof_executable. |
script | google.cloud.batch_v1.types.Runnable.ScriptScript runnable. This field is a member of oneof_executable. |
barrier | google.cloud.batch_v1.types.Runnable.BarrierBarrier runnable. This field is a member of oneof_executable. |
ignore_exit_status | boolNormally, a non-zero exit status causes the Task to fail. This flag allows execution of other Runnables to continue instead. |
background | boolThis flag allows a Runnable to continue running in the background while the Task executes subsequent Runnables. This is useful to provide services to other Runnables (or to provide debugging support tools like SSH servers). |
always_run | boolBy default, after a Runnable fails, no further Runnable are executed. This flag indicates that this Runnable must be run even if the Task has already failed. This is useful for Runnables that copy output files off of the VM or for debugging. The always_run flag does not override the Task's overall max_run_duration. If the max_run_duration has expired then no further Runnables will execute, not even always_run Runnables. |
environment | google.cloud.batch_v1.types.EnvironmentEnvironment variables for this Runnable (overrides variables set for the whole Task or TaskGroup). |
timeout | google.protobuf.duration_pb2.DurationTimeout for this Runnable. |
labels | MutableMapping[str, str]Labels for this Runnable. |
Classes
Barrier
Barrier(mapping=None,*,ignore_unknown_fields=False,**kwargs)Barrier runnable blocks until all tasks in a taskgroup reachit.
Container
Container(mapping=None,*,ignore_unknown_fields=False,**kwargs)Container runnable.
LabelsEntry
LabelsEntry(mapping=None,*,ignore_unknown_fields=False,**kwargs)The abstract base class for a message.
| Parameters | |
|---|---|
| Name | Description |
kwargs | dictKeys and values corresponding to the fields of the message. |
mapping | Union[dict,A dictionary or message to be used to determine the values for this message. |
ignore_unknown_fields | Optional(bool)If True, do not raise errors for unknown fields. Only applied if |
Script
Script(mapping=None,*,ignore_unknown_fields=False,**kwargs)Script runnable.
This message hasoneof_ fields (mutually exclusive fields).For each oneof, at most one member field can be set at the same time.Setting any member of the oneof automatically clears all othermembers.
.. _oneof:https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-04 UTC.