Skip to content

Commit 141f0b6

Browse files
committed
add 403 to the backoff policy becuase MOP responds FORBIDDEN while it's in the process of creating an execution
1 parent 4d21479 commit 141f0b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netfoundry/utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,9 +786,9 @@ def decorated(ref):
786786

787787
RETRY_STRATEGY = Retry(
788788
total=5,
789-
status_forcelist=[404, 413, 429, 503],
789+
status_forcelist=[403, 404, 413, 429, 503], # The API responds 403 and 404 for not-yet-existing executions for some async operations
790790
method_whitelist=["HEAD", "GET", "PUT", "DELETE", "OPTIONS", "TRACE"],
791-
backoff_factor=1.2
791+
backoff_factor=1
792792
)
793793
DEFAULT_TIMEOUT = 31 # seconds, Gateway Service waits 30s before responding with an error code e.g. 503 and
794794
# so waiting at least 31s is necessary to obtain that information

0 commit comments

Comments
 (0)