Skip to content

Commit 858bc92

Browse files
authored
Update 01-ddl-create_task.md
1 parent 8c3bda9 commit 858bc92

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/en/sql-reference/10-sql-commands/00-ddl/04-task/01-ddl-create_task.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ The CREATE TASK statement is used to define a new task that executes a specified
1515

1616
```sql
1717
CREATE TASK [ IF NOT EXISTS ] <name>
18-
[ WAREHOUSE = <string ]
19-
[ SCHEDULE = { <num> MINUTE | <num> SECOND | USING CRON <expr> <time_zone> } ]
18+
WAREHOUSE = <string>
19+
SCHEDULE = { <num> MINUTE | <num> SECOND | USING CRON <expr> <time_zone> }
2020
[ AFTER <string> [ , <string> , ... ]]
2121
[ WHEN <boolean_expr> ]
2222
[ SUSPEND_TASK_AFTER_NUM_FAILURES = <num> ]
@@ -31,8 +31,8 @@ AS
3131
| ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3232
| IF NOT EXISTS | Optional. If specified, the task will only be created if a task of the same name does not already exist. |
3333
| name | The name of the task. This is a mandatory field. |
34-
| WAREHOUSE | Optional. Specifies the virtual warehouse to use for the task. |
35-
| SCHEDULE | Optional. Defines the schedule on which the task will run. Can be specified in minutes or using a CRON expression along with a time zone. |
34+
| WAREHOUSE | Required. Specifies the virtual warehouse to use for the task. |
35+
| SCHEDULE | Required. Defines the schedule on which the task will run. Can be specified in minutes or using a CRON expression along with a time zone. |
3636
| SUSPEND_TASK_AFTER_NUM_FAILURES | Optional. The number of consecutive failures after which the task will be automatically suspended. |
3737
| AFTER | Lists tasks that must be completed before this task starts. |
3838
| WHEN boolean_expr | A condition that must be true for the task to run. |

0 commit comments

Comments
 (0)