> For the complete documentation index, see [llms.txt](https://docs.floui.io/guia/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.floui.io/guia/conectores/categorias/triggers/cron.md).

# CRON

O conector de agendamento permite utilizar padrões CRON para automatizar o início do seu fluxo. Além da expressão mundialmente conhecida, defina datas específicas ou períodos constantes.

### Sintaxe CRON

A sintaxe CRON é como as instruções são escritas para o agendador de tarefas CRON em sistemas Unix. Cada linha de uma crontab (arquivo que contém as tarefas do CRON) representa uma tarefa e é composta por 5 campos. Os primeiros dois campos representam a data e hora; o terceiro e quarto campo referem-se ao dia do mês e ao mês, respectivamente, e o quinto campo refere-se ao dia da semana em que a tarefa será executada, iniciando em 0 (domingo).

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcD0KY1l9_YLGrNY2muWqEjwKJr8hso3C5N0GRMXuAnga4Pa5z6Ql4bi145ShrtaHx3uQ0G5-HVWGAGGZHpc1ajU41cVtl9IB8LOYHUWB5H8aM5r9P9lKKU2ZM6bCRbRmz_bbt5rg?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Estrurura de CRON</p></figcaption></figure>

{% hint style="info" %}
A ferramenta [crontab.guru](https://crontab.guru) oferece uma maneira intuitiva de compreender o processo de criação de crontabs e facilita a elaboração de sua sintaxe. O conteúdo da ferramenta está em inglês, mas pode ser traduzido pela maioria dos navegadores.
{% endhint %}

{% tabs %}
{% tab title="Parâmetros" %}

<figure><img src="https://215079342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F226k0cnPTn1PWu9xHcK8%2Fuploads%2FmtdFI86SpRbSI46zcRlQ%2Fimage.png?alt=media&amp;token=fe50377b-07c4-487b-a48e-6312396640fc" alt="" width="365"><figcaption><p>Parâmetros de configuração</p></figcaption></figure>

| Campo               | Tipo           | Descrição                                                                                                                                                                                       |
| ------------------- | -------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Descrição           | Campo de texto | Descrição visual do conector no editor de fluxos                                                                                                                                                |
| Tipo de agendamento | Seletor        | Permite selecionar entre agendamentos pré definidos ou um agendamento customizado.                                                                                                              |
| Expressão CRON      | Campo de texto | <p>Disponibiliza campo para realizar um agendamento customizado. </p><p>Disponível quando o Tipo de agendamento é Expressão Cron.</p>                                                           |
| Dia/hora específica | Data           | <p>Permite abstrair o dia e a hora em que o processo será executado através de uma entrada intuitiva via calendário. </p><p>Disponível quando o Tipo de agendamento é Data/hora específica.</p> |
| {% endtab %}        |                |                                                                                                                                                                                                 |

{% tab title="Orientações" %}

## Múltiplos agendamentos em um único fluxo

Atualmente só é suportado apenas um agendamento ativo por fluxo. Ao inserir múltiplos conectores CRON, em horários diferentes ou iguais, somente o último conector CRON adicionado será realmente validado e executado.

## Execuções enfileiradas

Por questões de segurança e controle, execuções por agendamento não poderão ser enfileiradas. Caso um novo agendamento CRON esteja pronto para iniciar enquanto já está ocorrendo a execução do fluxo por um agendamento anterior, este novo agendamento não será executado, retornando a mensagem abaixo. Nestes casos irá aguardar até que a execução anterior seja concluída para que uma próxima seja iniciada.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc5gdtjTghvRgFoZDYE_LQEDZ9gCHwO6APaQJGl_xJBFwPI1PhA3OPW66ClWhNYLB_8g7DAXpi0TUFB_2mHe0V83uL4IBumcSY7ZsWcNLNdWVYeKdVTG5JY7SNsC_DoU-eWXYNa_Q?key=yLogrgEbXy0K_a4zmB9ApgKO" alt=""><figcaption><p>Erro em execuções enfileiradas</p></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.floui.io/guia/conectores/categorias/triggers/cron.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
