View Source GoogleApi.Batch.V1.Model.AgentTaskSpec (google_api_batch v0.6.3)
AgentTaskSpec is the user's TaskSpec representation between Agent and CLH communication.
Attributes
-
environment
(type:GoogleApi.Batch.V1.Model.AgentEnvironment.t
, default:nil
) - Environment variables to set before running the Task. -
loggingOption
(type:GoogleApi.Batch.V1.Model.AgentTaskLoggingOption.t
, default:nil
) - Logging option for the task. -
maxRunDuration
(type:String.t
, default:nil
) - Maximum duration the task should run before being automatically retried (if enabled) or automatically failed. Format the value of this field as a time limit in seconds followed bys
—for example,3600s
for 1 hour. The field accepts any value between 0 and the maximum listed for theDuration
field type at https://protobuf.dev/reference/protobuf/google.protobuf/#duration; however, the actual maximum run time for a job will be limited to the maximum run time for a job listed at https://cloud.google.com/batch/quotas#max-job-duration. -
runnables
(type:list(GoogleApi.Batch.V1.Model.AgentTaskRunnable.t)
, default:nil
) - AgentTaskRunnable is runanbles that will be executed on the agent. -
userAccount
(type:GoogleApi.Batch.V1.Model.AgentTaskUserAccount.t
, default:nil
) - User account on the VM to run the runnables in the agentTaskSpec. If not set, the runnable will be run under root user.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.Batch.V1.Model.AgentTaskSpec{ environment: GoogleApi.Batch.V1.Model.AgentEnvironment.t() | nil, loggingOption: GoogleApi.Batch.V1.Model.AgentTaskLoggingOption.t() | nil, maxRunDuration: String.t() | nil, runnables: [GoogleApi.Batch.V1.Model.AgentTaskRunnable.t()] | nil, userAccount: GoogleApi.Batch.V1.Model.AgentTaskUserAccount.t() | nil }
Functions
Unwrap a decoded JSON object into its complex fields.