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

LifecyclePolicy

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

LifecyclePolicy describes how to deal with task failures based on different conditions.

interface LifecyclePolicy {
action?: "ACTION_UNSPECIFIED" | "RETRY_TASK" | "FAIL_TASK";
actionCondition?: ActionCondition;
}

§Properties

§
action?: "ACTION_UNSPECIFIED" | "RETRY_TASK" | "FAIL_TASK"
[src]

Action to execute when ActionCondition is true. When RETRY_TASK is specified, we will retry failed tasks if we notice any exit code match and fail tasks if no match is found. Likewise, when FAIL_TASK is specified, we will fail tasks if we notice any exit code match and retry tasks if no match is found.

§
actionCondition?: ActionCondition
[src]

Conditions that decide why a task failure is dealt with a specific action.