Documentation for version v72
Scheduler
Description
Scheduler The pipe transmits the event for execution to the Schedulepipeline.
caution
The event passed to the Schedule pipeline changes the data in $origin to params.template
Structure
| Field | Type of value | Example | Required | Description |
|---|---|---|---|---|
| id | int | 10 | yes | Pipe's ID |
| type | string | "scheduled" | yes | Type of a pipe |
| params | ScheduleParamsObject | no | Type-specific parameters | |
| outs | OutsObject | no | Pipe's outputs |
| ScheduleParamsObject | |||||
|---|---|---|---|---|---|
| Field | Type | Example | Reqiered | Default | Description |
| pipe_id | int | 5 | yes | - | pipe's id в Schedule pipeline into which the event will go. |
| delay | int | 10 | no | PIPE_SCHEDULER_DELAY (default 60 сек) | Event execution delay. |
| template | object |
| yes | - | Data that will be written to the |
Errors
Error processing template params.template.
Examples
{
"id": 801,
"type": "scheduled",
"params": {
"pipe_id": 1,
"template": {
"camp_id": "$origin.c_id",
"send_message_id": "$origin.send_message_id",
"ym_cmp_id": "$#in.data.ymCampaignId"
},
"delay": 10
},
"outs": {
"success": 802,
"error": 803
}
}