diff options
author | Riccardo Paolo Bestetti <pbl@bestov.io> | 2022-01-15 20:11:59 +0300 |
---|---|---|
committer | Riccardo Paolo Bestetti <pbl@bestov.io> | 2022-01-21 01:22:08 +0300 |
commit | 528478fda480da09deb7db3cf74d5f027224c843 (patch) | |
tree | 378501760882d19cc0ca4505237ca6b386639760 /Duplicati/Library/Main/Options.cs | |
parent | 82c14c5cb77166393f73e0cfcb77e075faecb8c3 (diff) |
Implement exponential backoff for backend errors
Diffstat (limited to 'Duplicati/Library/Main/Options.cs')
-rw-r--r-- | Duplicati/Library/Main/Options.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Duplicati/Library/Main/Options.cs b/Duplicati/Library/Main/Options.cs index d905f0865..a824f6680 100644 --- a/Duplicati/Library/Main/Options.cs +++ b/Duplicati/Library/Main/Options.cs @@ -280,6 +280,7 @@ namespace Duplicati.Library.Main new CommandLineArgument("number-of-retries", CommandLineArgument.ArgumentType.Integer, Strings.Options.NumberofretriesShort, Strings.Options.NumberofretriesLong, "5"),
new CommandLineArgument("retry-delay", CommandLineArgument.ArgumentType.Timespan, Strings.Options.RetrydelayShort, Strings.Options.RetrydelayLong, "10s"),
+ new CommandLineArgument("retry-with-exponential-backoff", CommandLineArgument.ArgumentType.Boolean, Strings.Options.RetrywithexponentialbackoffShort, Strings.Options.RetrywithexponentialbackoffLong, "false"),
new CommandLineArgument("synchronous-upload", CommandLineArgument.ArgumentType.Boolean, Strings.Options.SynchronousuploadShort, Strings.Options.SynchronousuploadLong, "false"),
new CommandLineArgument("asynchronous-upload-limit", CommandLineArgument.ArgumentType.Integer, Strings.Options.AsynchronousuploadlimitShort, Strings.Options.AsynchronousuploadlimitLong, "4"),
@@ -814,7 +815,7 @@ namespace Duplicati.Library.Main public bool DisablePipedStreaming { get { return GetBool("disable-piped-streaming"); } }
/// <summary>
- /// Gets the timelimit for removal
+ /// Gets the delay period to retry uploads
/// </summary>
public TimeSpan RetryDelay
{
@@ -828,6 +829,14 @@ namespace Duplicati.Library.Main }
/// <summary>
+ /// Gets whether exponential backoff is enabled
+ /// </summary>
+ public Boolean RetryWithExponentialBackoff
+ {
+ get { return Library.Utility.Utility.ParseBoolOption(m_options, "retry-with-exponential-backoff"); }
+ }
+
+ /// <summary>
/// Gets the max upload speed in bytes pr. second
/// </summary>
public long MaxUploadPrSecond
|