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

Retry

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

Retries the failed job.

interface Retry {
attempts?: bigint;
backoffMode?: "BACKOFF_MODE_UNSPECIFIED" | "BACKOFF_MODE_LINEAR" | "BACKOFF_MODE_EXPONENTIAL";
wait?: number;
}

§Properties

§
attempts?: bigint
[src]

Required. Total number of retries. Retry is skipped if set to 0; The minimum value is 1, and the maximum value is 10.

§
backoffMode?: "BACKOFF_MODE_UNSPECIFIED" | "BACKOFF_MODE_LINEAR" | "BACKOFF_MODE_EXPONENTIAL"
[src]

Optional. The pattern of how wait time will be increased. Default is linear. Backoff mode will be ignored if wait is 0.

§
wait?: number
[src]

Optional. How long to wait for the first retry. Default is 0, and the maximum value is 14d.