Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Latest commit

 

History

History
64 lines (45 loc) · 1.41 KB

README.md

File metadata and controls

64 lines (45 loc) · 1.41 KB

robot-move-error

Move errors back into queue a given number of times

Setup

Create/Update .env with correct settings

Add equal RETRY_COUNT_n settings as RETRY_COUNT is set to

RETRY_COUNT_n must be set in ISO8601 duration format

RETRY_COUNT=3
RETRY_COUNT_1=PT1H
RETRY_COUNT_2=PT2H30M
RETRY_COUNT_3=P1D
MS_TEAMS_WEBHOOK=url-to-webhook-or-empty-if-not-used
ERROR_PATH=../test/error
QUEUE_PATH=../test/jobs
SERVICE=test

Install dependencies

npm install

Usage

All arguments are optional. Argument(s) omitted will use the default from .env

node index.js --errorPath=../test/error --queuePath=../test/jobs --service=whatever --retryCount=5 --msTeamsWebHook=url-to-hook

Disable retry

If you want to disable retry for a service, set RETRY_COUNT to 0

Docker

Add equal RETRY_COUNT_n settings as RETRY_COUNT is set to

RETRY_COUNT_n must be set in ISO8601 duration format

Add these to .env

RETRY_COUNT=3
RETRY_COUNT_1=PT1H
RETRY_COUNT_2=PT2H30M
RETRY_COUNT_3=P1D
MS_TEAMS_WEBHOOK=
ERROR_PATH=
QUEUE_PATH=
SERVICE=

Add this to Dockerfile

ENTRYPOINT node index.js --errorPath=$ERROR_PATH --queuePath=$QUEUE_PATH --service=$SERVICE