1.1.0 • Published 9 months ago

@waldbaer/node-red-retry v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Configurable retry mechanism for Node-RED flows.

Platform npm version MIT License GitHub issues open GitHub Actions Coverage Status

A user-friendly node for configurable retry handling in Node-RED flows.

Features

  • Limit number of retry approaches.
  • Different retry strategies:
    • Immediate
    • Fixed Delay
    • Random Delay
  • Routing/Re-Throwing of subsequent errors if retries limit is exceeded.

Installation

You can install the nodes using the Node-RED 'Manage palette' in the side bar.

Or run the following command in the root directory of your Node-RED installation

npm install @waldbaer/node-red-retry

NPM

Changelog

Changes can be followed here.

Usage

Introduction

Wiring

1) Add a retry node before a flow section which might fail. 2) Add a catch node and catch all errors of the node(s) which might fail with errors. It is recommended to catch only errors from the potentially failing nodes (catch node option: Catch errors from 'selected nodes'). 3) Connect the output of the catch node to the input of the retry node.

Configuration

  • Set max. number of retry approaches
  • Configure used retry strategy.
  • Optional: Enable throwing of every subsequent error msg as error if the retries limit is exceeded.

Examples

Import into Node-RED instance via Node-RED -> Import -> Examples -> @waldbaer/node-red-retry.

1.1.0

9 months ago

1.0.0

10 months ago