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;
maxRunDuration?: number;
runnables?: AgentTaskRunnable[];
userAccount?: AgentTaskUserAccount;
}

§Properties

§
environment?: AgentEnvironment
[src]

Environment variables to set before running the Task.

§
maxRunDuration?: number
[src]

Maximum duration the task should run. The task will be killed and marked as FAILED if over this limit. The valid value range for max_run_duration in seconds is [0, 315576000000.999999999],

§

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.