> For the complete documentation index, see [llms.txt](https://docs.graviti.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.graviti.com/guide/tensorbay/action/schedule-crontab.md).

# Crontab syntax Description

Crontab is a set of commands used to schedule the execution of tasks. Users can set the time parameters to make the programs run on schedule.

![](/files/MLrWAWAqpq18dvlVTrcw)

A crontab file has five fields for specifying day, date, and time followed by the command to be run at that interval. After being set, your workflow will run automatically on schedule.

```
# the format of crontab: 
    *    *    *    *    *
    -    -    -    -    -
    |    |    |    |    |
    |    |    |    |    +----- day of week (0 - 7) (Sunday=0 or 7) 
    |    |    |    +---------- month (1 - 12)
    |    |    +--------------- day of the month (1 - 31)
    |    +-------------------- hour (0 - 23)
    +------------------------- minute (0 - 59)
    
# Examples：
    0 0 1 * *       # the firth day of a month
    10 6 * * 1-5    # every Monday to Friday at 6:10 a.m. 
```

You also can enter Crontab online editor for more syntax descriptions and examples through the link.

{% embed url="<https://crontab.guru>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.graviti.com/guide/tensorbay/action/schedule-crontab.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
