openwisp / openwisp-config

OpenWRT configuration agent for OpenWISP Controller
https://openwisp.io/docs/stable/openwrt-config-agent/
GNU General Public License v3.0
374 stars 59 forks source link

[feature] Added retry mechanism with random backoff #186 #188

Closed pandafy closed 1 year ago

pandafy commented 2 years ago

Added retry mechanism with random backoff for following functions:

Closes #186


I have manually tested these changes with my device.

github-actions[bot] commented 1 year ago

sh-checker report

To get the full details, please check in the job output.

shellcheck errors ``` 'shellcheck ' returned error 1 finding the following syntactical issues: ---------- In openwisp_agent line 821: if [ "$?" -ne "0" ]; then ^--^ SC2181 (style): Check exit code directly with e.g. 'if ! mycmd;', not indirectly with $?. For more information: https://www.shellcheck.net/wiki/SC2181 -- Check exit code directly with e.g... ---------- You can address the above issues in one of three ways: 1. Manually correct the issue in the offending shell script; 2. Disable specific issues by adding the comment: # shellcheck disable=NNNN above the line that contains the issue, where NNNN is the error code; 3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file. ```
shfmt errors ``` 'shfmt ' found no issues. ```