DESCRIBE TASK¶
Describes the columns in a task.
DESCRIBE can be abbreviated to DESC.
- See also:
Syntax¶
DESC[RIBE] TASK <name>
Parameters¶
name
Specifies the identifier for the task to describe. If the identifier contains spaces or special characters, the entire string must be enclosed in double quotes. Identifiers enclosed in double quotes are also case-sensitive.
Output¶
The command output provides task properties and metadata in the following columns:
Column name |
Description |
---|---|
created_on |
Date and time that the task was created. |
name |
The name of the task. |
id |
The globally unique identifier (GUID) for the task. |
database_name |
Name of the database that contains the task. |
schema_name |
The name of the schema that contains the task. |
owner |
The name of the role that owns the task. |
comment |
Comment for the task, if any. |
warehouse |
The name of the virtual warehouse that provides compute resources for running the task. |
schedule |
The schedule, if any, for periodically running the task, as a cron expression. For example, |
predecessors |
The name or names of any predecessor tasks, if any, for the current task. |
state |
Any one of:
|
definition |
The SQL statement that the task executes when scheduled or triggered. |
condition |
Text of the |
allow_overlapping_execution |
TRUE or FALSE. Applies only to root tasks. TRUE indicates that multiple instances of the root task can run concurrently. FALSE is the default. |
error_integration |
The name of the notification integration used to communicate with Amazon SNS, MS Azure Event Grid, or Google Pub/Sub. Returns |
last_committed_on |
Timestamp when a version of the task was last set, if applicable. For more information, see Versioning of task runs. |
last_suspended_on |
Timestamp when the task was last suspended, if applicable. |
owner_role_type |
The type of role that owns the object, for example, |
config |
Applies only to root tasks in a task graph. Displays the configuration, if present. |
budget |
Name of the budget if the object is monitored by a budget. NULL otherwise. |
task_relations |
Displays the relationship between the root task and its corresponding finalizer tasks. |
last_suspended_reason |
Displays the reason that the task was suspended. The possible reasons include the following:
|
Usage notes¶
Only returns rows for a task owner (i.e. the role with the OWNERSHIP privilege on a task) or a role with either the MONITOR or OPERATE privilege on a task.
To post-process the output of this command, you can use the RESULT_SCAN function, which treats the output as a table that can be queried.
Examples¶
Create an example task:
CREATE TASK mytask ( ... );
Describe the columns in the task:
DESC TASK mytask;