https://github.com/runnerty/executor-wait
Runnerty module: Wait executor
https://github.com/runnerty/executor-wait
executor runnerty sleep sleep-timer wait
Last synced: about 1 month ago
JSON representation
Runnerty module: Wait executor
- Host: GitHub
- URL: https://github.com/runnerty/executor-wait
- Owner: runnerty
- License: mit
- Created: 2017-04-07T14:40:49.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2023-07-19T00:32:08.000Z (almost 2 years ago)
- Last Synced: 2025-01-24T20:15:56.595Z (3 months ago)
- Topics: executor, runnerty, sleep, sleep-timer, wait
- Language: JavaScript
- Size: 166 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Smart Processes Management
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url]
![]()
# Wait executor for [Runnerty]:
Module for the creation of waiting processes.
### Installation:
```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
```### Configuration:
Add in [config.json]:
```json
{
"id": "wait_default",
"type": "@runnerty-executor-wait",
"time": "1 min"
}
```### Plan:
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/