File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 92
92
)
93
93
from .constants import (
94
94
NUCLEUS_ENDPOINT ,
95
- DEFAULT_TIMEOUT ,
95
+ DEFAULT_NETWORK_TIMEOUT_SEC ,
96
96
ERRORS_KEY ,
97
97
ERROR_ITEMS ,
98
98
ERROR_PAYLOAD ,
@@ -1022,7 +1022,7 @@ def _make_grequest(
1022
1022
session = sess ,
1023
1023
files = payload ,
1024
1024
auth = (self .api_key , "" ),
1025
- timeout = DEFAULT_TIMEOUT ,
1025
+ timeout = DEFAULT_NETWORK_TIMEOUT_SEC ,
1026
1026
)
1027
1027
else :
1028
1028
post = requests_command (
@@ -1031,7 +1031,7 @@ def _make_grequest(
1031
1031
json = payload ,
1032
1032
headers = {"Content-Type" : "application/json" },
1033
1033
auth = (self .api_key , "" ),
1034
- timeout = DEFAULT_TIMEOUT ,
1034
+ timeout = DEFAULT_NETWORK_TIMEOUT_SEC ,
1035
1035
)
1036
1036
return post
1037
1037
@@ -1055,7 +1055,7 @@ def _make_request_raw(
1055
1055
json = payload ,
1056
1056
headers = {"Content-Type" : "application/json" },
1057
1057
auth = (self .api_key , "" ),
1058
- timeout = DEFAULT_TIMEOUT ,
1058
+ timeout = DEFAULT_NETWORK_TIMEOUT_SEC ,
1059
1059
)
1060
1060
logger .info ("API request has response code %s" , response .status_code )
1061
1061
Original file line number Diff line number Diff line change 1
1
NUCLEUS_ENDPOINT = "https://api.scale.com/v1/nucleus"
2
- DEFAULT_TIMEOUT = 60
2
+ DEFAULT_NETWORK_TIMEOUT_SEC = 60
3
3
ITEMS_KEY = "items"
4
4
ITEM_KEY = "item"
5
5
REFERENCE_ID_KEY = "reference_id"
You can’t perform that action at this time.
0 commit comments