Skip to main content

Periodic Tasks

Configuration is done under the menu root node

NodeAliasesDescription
taskstaskMenu periodic tasks

Task Structure

NodeAliasesAccepted ValuesDescription
delay-LongInitial execution delay (default 0)
period-LongPeriodic task interval (default disabled)
async-BoolWhether asynchronous (default true)
run-Object / ListExecution content
  • If period is not specified, the task will only execute once
  • The execution content is written the same as node scripts

Creating Tasks

tasks:
myCustomTask:
period: 20
run:
- type: kether
value: |-
tell second

Calling Tasks

Like node references, tasks can also be called secondarily (i.e., can be called outside of periodic execution) Operation statement:

task <id> with [action]