|
3 | 3 | <!-- Блоки выше заполняются автоматически, не трогать -->
|
4 | 4 | ## Description
|
5 | 5 | <!-- Описание диагностики заполняется вручную. Необходимо понятным языком описать смысл и схему работу -->
|
| 6 | +Certain requirements are imposed on the methods of scheduled job handlers. |
| 7 | +Any export procedure or function of a non-global common server module can be used as a scheduled job method. If the scheduled job method is a function, then its return value is ignored. |
| 8 | + |
| 9 | +If the scheduled job is predefined, then its handler should not have parameters. |
| 10 | +Otherwise, the parameters of such a scheduled job can be any values that are allowed to be sent to the server. The parameters of a scheduled job must exactly match the parameters of the procedure or function it calls. |
| 11 | + |
| 12 | +Diagnostics checks the following signs of the correctness of the scheduled job handler method: |
| 13 | +- there is a common module and a shared module method specified as a handler |
| 14 | +- common module is server |
| 15 | +- the method is export |
| 16 | +- the method has no parameters if the scheduled job is predefined |
| 17 | +- method body is not empty |
| 18 | +- there are no other scheduled jobs that refer to the same handler method |
6 | 19 |
|
7 | 20 | ## Examples
|
8 | 21 | <!-- В данном разделе приводятся примеры, на которые диагностика срабатывает, а также можно привести пример, как можно исправить ситуацию -->
|
|
11 | 24 | <!-- Необходимо указывать ссылки на все источники, из которых почерпнута информация для создания диагностики -->
|
12 | 25 | <!-- Примеры источников
|
13 | 26 |
|
14 |
| -* Источник: [Стандарт: Тексты модулей](https://its.1c.ru/db/v8std#content:456:hdoc) |
15 |
| -* Полезная информация: [Отказ от использования модальных окон](https://its.1c.ru/db/metod8dev#content:5272:hdoc) |
| 27 | +* Source: [Standard: Modules (RU)](https://its.1c.ru/db/v8std#content:456:hdoc) |
| 28 | +* Useful information: [Refusal to use modal windows (RU)](https://its.1c.ru/db/metod8dev#content:5272:hdoc) |
16 | 29 | * Источник: [Cognitive complexity, ver. 1.4](https://www.sonarsource.com/docs/CognitiveComplexity.pdf) -->
|
| 30 | +- [Set of articles "Scheduled job" - standard 1C (RU)](https://its.1c.ru/db/v8std#browse:13:-1:1:6) |
| 31 | +- [Article "Scheduled job" from the developer's guide 1C 8.3 (RU)](https://its.1c.ru/db/v8322doc#bookmark:dev:TI000000794) |
0 commit comments