Sleep#
The Sleep task allows the user to configure that after a set amount of time, wishes the task to emit. The task must be activated in order to start the timer.
Inputs#
| Name | Data Type | Description |
|---|---|---|
| Interval | Integer | Interval from activation time until emit |
| Activates | any | Activates the sleep execution |
Outputs#
| Name | Data Type | Description |
|---|---|---|
| Timestamp | DateTime | Current time upon execution |
| Success | Boolean | If there was no problem emits a true |
| Error | Error | Error that occurred during the processing of this task |
Settings#
| Name | Data Type | Default | Description |
|---|---|---|---|
| Interval | Integer | 10000 | Number of milliseconds to sleep |
Behavior#
The Sleep task, allows the user to configure a set amount of time, after which the task will emit.
Remarks#
Every activation starts its own wait, whatever the value received, false included, and several waits can run at the same time. A wait that has started cannot be canceled.
In Data Flow, the wait does not keep the values of the occurrence that started it. When a new occurrence arrives during the wait, the tasks after the Sleep read the values of the new occurrence.
