Runnerty module: wait executor
npm install @runnerty/executor-waitSmart Processes Management
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url]
Module for the creation of waiting processes.
``bash`
npm i @runnerty/executor-wait
You can also add modules to your project with [runnerty]
`bash`
npx runnerty add @runnerty/executor-wait
This command installs the module in your project, adds example configuration in your [config.json] and creates an example plan of use.
If you have installed [runnerty] globally you can include the module with this command:
`bash`
runnerty add @runnerty/executor-wait
Add in [config.json]:
`json`
{
"id": "wait_default",
"type": "@runnerty-executor-wait",
"time": "1 min"
}
Add in [plan.json]:
`json`
{
"id": "wait_default",
"time": "30s"
}
`json`
{
"id": "wait_default",
"time": "3s",
"output": "Hello @GETDATE('YYYY-MM-DD')"
}
#### We can make it end up failing by indicating the error message:
`json``
{
"id": "wait_default",
"time": "0s",
"error": "Caused error for testing"
}
[runnerty]: https://www.runnerty.io
[downloads-image]: https://img.shields.io/npm/dm/@runnerty/executor-wait.svg
[npm-url]: https://www.npmjs.com/package/@runnerty/executor-wait
[npm-image]: https://img.shields.io/npm/v/@runnerty/executor-wait.svg
[config.json]: http://docs.runnerty.io/config/
[plan.json]: http://docs.runnerty.io/plan/