An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        





Smart Processes Management

[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url]

code style: prettier

# 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/