Move errors back into queue a given number of times
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
npm install
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
If you want to disable retry for a service, set RETRY_COUNT
to 0
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=
ERROR_PATH=
QUEUE_PATH=
SERVICE=
ENTRYPOINT node index.js --errorPath=$ERROR_PATH --queuePath=$QUEUE_PATH --service=$SERVICE