Skip to content

Commit de22acf

Browse files
committed
add resource spec for executions
1 parent 825be3b commit de22acf

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

netfoundry/utility.py

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,21 @@ def __post_init__(self):
557557
status="state",
558558
status_symbols=PROCESS_STATUS_SYMBOLS,
559559
),
560+
'executions': ResourceType(
561+
name='executions',
562+
domain='network',
563+
mutable=False,
564+
embeddable=True,
565+
status_symbols=PROCESS_STATUS_SYMBOLS,
566+
abbreviation='ex',
567+
),
568+
# 'processes': ResourceType( # not a fully-fledged resource type because there is no "find processes" operation at this time
569+
# name='processes',
570+
# domain='network',
571+
# mutable=False,
572+
# embeddable=False,
573+
# status_symbols=PROCESS_STATUS_SYMBOLS,
574+
# ),
560575
'regions': ResourceType(
561576
name='regions',
562577
domain='network',
@@ -770,10 +785,10 @@ def decorated(ref):
770785

771786

772787
RETRY_STRATEGY = Retry(
773-
total=3,
774-
status_forcelist=[413, 429, 503],
788+
total=5,
789+
status_forcelist=[404, 413, 429, 503],
775790
method_whitelist=["HEAD", "GET", "PUT", "DELETE", "OPTIONS", "TRACE"],
776-
backoff_factor=1
791+
backoff_factor=1.2
777792
)
778793
DEFAULT_TIMEOUT = 31 # seconds, Gateway Service waits 30s before responding with an error code e.g. 503 and
779794
# so waiting at least 31s is necessary to obtain that information

0 commit comments

Comments
 (0)