metakgp / metakgp-wiki

Dockerized source for the metakgp wiki.
https://wiki.metakgp.org
GNU General Public License v3.0
23 stars 20 forks source link

[ENHANCEMENT] Allow Retries With Curl #45

Closed thealphadollar closed 5 years ago

thealphadollar commented 5 years ago

change severity: moderate

The change concerns the crucial part of sending notifications to slack; it now uses the '--retry' parameter of curl. A maximum of 8 retries are made, and the delay between the first is 1 seconds and then with every retry it is doubled. For 8 retries 8.51 seconds will be elapsed, enough for any server errors to get rectified.

NOTE: Only FTP 4xx and HTTP 5xx errors are caught and retried for.

thealphadollar commented 5 years ago

@amrav @ghostwriternr @icyflame Please review.

thealphadollar commented 5 years ago

I don't have access to the server :(