Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AgentTaskSpec

import type { AgentTaskSpec } from "https://googleapis.deno.dev/v1/batch:v1.ts";

AgentTaskSpec is the user's TaskSpec representation between Agent and CLH communication.

interface AgentTaskSpec {
environment?: AgentEnvironment;
loggingOption?: AgentTaskLoggingOption;
maxRunDuration?: number;
runnables?: AgentTaskRunnable[];
userAccount?: AgentTaskUserAccount;
}

§Properties

§
environment?: AgentEnvironment
[src]

Environment variables to set before running the Task.

§

Logging option for the task.

§
maxRunDuration?: number
[src]

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 by s—for example, 3600s for 1 hour. The field accepts any value between 0 and the maximum listed for the Duration 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.

§

AgentTaskRunnable is runanbles that will be executed on the agent.

§

User account on the VM to run the runnables in the agentTaskSpec. If not set, the runnable will be run under root user.