Namespace src/Retry

src/Retry

Overview

Directory src/Retry

file source src/Retry/default.sh

Retry::default

Retry a command 5 times with a delay of 15 seconds between each attempt

Arguments
  • (command:String[]): the command to run
Environment variables
  • RETRY_MAX_RETRY (int): max retries
  • RETRY_DELAY_BETWEEN_RETRIES (int): delay between attempts
Exit codes
  • 0: on success
  • 1: if max retries count reached

src/Retry/parameterized.sh

file source src/Retry/parameterized.sh

Retry::parameterized

Retry a command several times depending on parameters

Arguments
  • $1 (maxRetries:int): $1 max retries
  • $2 (delay:int): between attempt
  • $3 (message:String): to display to describe the attempt
  • (rest): of parameters, the command to run
Exit codes
  • 0: on success
  • 1: if max retries count reached
  • 2: if maxRetries invalid value
Or, if you want, you can alternatively use the GitHub discussion Q&A for feedback and questions.