Introduction
The sleep executor simply sleeps for a certain amount of time. The sleep function takes a string as argument stating how long time to sleep in milliseconds.
Usage
cat ./sleep.json
{
"conditions": {
"executortype": "sleep"
},
"funcname": "sleep",
"args": [
"1000"
]
}
colonies function submit --spec ./sleep.json
or altenatively to sleep for 20 seconds:
colonies function exec --func sleep --args 20000 --targettype sleep