> For the complete documentation index, see [llms.txt](https://support.morozovpimnev.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.morozovpimnev.ru/amocrm/planirovshik-zadach.md).

# Планировщик задач

#### Шаг 1. Добавление вызова в cron

Выполнением действий, заданных в модуле **«Планировщик задач»**, осуществляется файлом `cron/schedule.php`, вызов которого необходимо добавить в cron. Рекомендуется запускать выполнение файла schedule.php раз в минуту.

Пример вызова: `/usr/bin/php /var/www/site.ru/httpdocs/cron/schedule.php`

Пример вызова с передачей php.ini: `/usr/bin/php --php-ini /etc/php.ini /var/www/site.ru/httpdocs/cron/schedule.php`

{% hint style="warning" %}
Реальный путь на сервере к корневой директории сайта и путь к PHP уточните в службе поддержки хостинга.
{% endhint %}

#### Шаг 2

Добавляем задачу, в основном меню выберите **Инструменты** → **Планировщик задач**, нажмите в меню на **+Задача**

<div data-full-width="true"><figure><img src="/files/VryCXKj4QbfWsnXNqmN3" alt=""><figcaption></figcaption></figure></div>

* ***Дата следующего выполнения задачи*** - Дата и время, когда следует выполнить задачу снова. После выполнения задачи к ее времени будет прибавлен установленный интервал, рассчитанное время будет записано в это поле.
* ***Дата добавления задачи*** - Дата и время, когда задача была добавлена.
* ***Интервал*** - Время, устанавливающее периодичность выполнения задачи (рекомендуем указывать `5 минут`).&#x20;
* ***Модуль*** - Модуль, у которого будет вызываться задача (выбираем `AmoCRM`).
* ***Действие*** - Действие модуля, которое будет вызывать задача (выбираем `Выгрузка элементов`).
* ***Идентификатор сущности*** - Идентификатор элемента, над которым нужно произвести действие (указываем ID сайта).
* ***Описание*** - Описание задачи.


---

# 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:

```
GET https://support.morozovpimnev.ru/amocrm/planirovshik-zadach.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
