Skip to content

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

License

Notifications You must be signed in to change notification settings

waldbaer/node-red-retry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published