Calls to the Soliscloud API sometimes fail - the upstream has to establish comms with our inverter, which apparently fails sometimes.
Rather than simply returning an error to our caller, we should probably retry the call first.
If we do retry, we need to let the caller know that we did so.
Activity
01-Jan-25 12:45
assigned to @btasker
01-Jan-25 14:37
mentioned in commit fe9aa8bc66e05bc3cae1eff2b8518241a7a65ba3
Message
feat: automatically retry if an API call fails (misc/soliscloud-inverter-control#5)
If an API call fails, wait a few seconds and then try again
01-Jan-25 14:38
The commit above introduces a single retry.
There are a couple of env vars responsible for controlling this behaviour
RETRIES_ENABLED
(defaulttrue
): whether failed calls should retryRETRY_DELAY
(default 3): the delay in seconds before the next call is made