> For the complete documentation index, see [llms.txt](https://knowledge.out-smart.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/contratos/definir-dias-de-antecedencia.md).

# Definir Dias de antecedência

Controlar quanto tempo antes da data agendada uma Ordem de trabalho do Contrato deve ser criada.

**Dias de antecedência** Determina com quanta antecedência é gerada uma Ordem de trabalho antes do prazo agendado.

Utiliza-se para dar aos planeadores tempo suficiente de preparação.

### Como funciona

O Agendamento recorrente define a data-alvo.

Dias de antecedência define a data de geração antes dessa data-alvo.

Se a data-alvo for 31 de agosto e os Dias de antecedência forem 30, a Ordem de trabalho é criada em 1 de agosto.

### Quando deve ser ajustado

Utiliza-se um prazo de preparação mais curto para ciclos de planeamento rápidos.

Utiliza-se um prazo de preparação mais longo quando o agendamento necessita de mais preparação.

### Perguntas frequentes

<details>

<summary>É possível alterar os Dias de antecedência mais tarde?</summary>

Sim.

A calendarização futura da geração pode ser recalculada.

</details>

<details>

<summary>O que acontece quando os Dias de antecedência são 0?</summary>

A Ordem de trabalho é criada na data agendada.

</details>

<details>

<summary>Isto aplica-se aos Contratos corretivos?</summary>

Não.

Os Contratos corretivos utilizam, em vez disso, lógica de SLA.

</details>

### Tópicos relacionados

* [**Configurar o Agendamento recorrente**](/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/contratos/configurar-o-agendamento-recorrente.md)
* [**Compreender a geração de Ordens de trabalho do Contrato**](/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/contratos/compreender-a-geracao-de-ordens-de-trabalho-do-contrato.md)
* [**Criar um Contrato**](/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/contratos/criar-um-contrato.md)


---

# 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://knowledge.out-smart.com/outsmart-knowledge-base/outsmart-knowledge-base-pt/loja-virtual-pacotes-e-power-ups/power-ups/contratos/definir-dias-de-antecedencia.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.
