EXECUTE TASK GRAPH

statementnot supportedUDFs, procedures, tasks, alerts, scriptingpreview

docs.snowflake.com ↗

Triggers one immediate run of a Task Graph Object’s committed version, regardless of its schedule.

Syntax

EXECUTE TASK GRAPH <name>
  [ USING CONFIG = <configuration_string> ]

EXECUTE TASK GRAPH <name> RETRY LAST

EXECUTE TASK GRAPH <name> RETRY GRAPH RUN GROUP '<graph_run_group_id>'

Parameters

NameRequiredDescription
nameString that specifies the identifier of the task graph to run.
USING CONFIG = configuration_stringSpecifies a JSON configuration string for this run only. It’s merged with the graph’s CONFIG: fields you specify override the graph’s values, and the rest come from the graph. The graph definition isn’t changed.
RETRY LASTRetries the most recent failed run, starting from the tasks that failed or were canceled rather than re-running the entire graph. The retry is a new run in the same graph run group. The last run must be in state FAILED or CANCELED, and its first attempt must have started within the last 14 days.
RETRY GRAPH RUN GROUP 'graph_run_group_id'Retries a specific earlier run, identified by its GRAPH_RUN_GROUP_ID, starting from the tasks that failed or were canceled. The run’s first attempt must have started within the last 14 days. To find the ID, query COMPLETE_TASK_GRAPHS with GRAPH_NAME.

Usage notes

See also

Referenced by