File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 67
67
@click .option (
68
68
"--no-cache" ,
69
69
is_flag = True ,
70
- default = False ,
70
+ default = True ,
71
71
help = "Disable caching for the pipeline run." ,
72
72
)
73
73
@click .option (
Original file line number Diff line number Diff line change 32
32
import requests
33
33
import urllib3
34
34
from pydantic import BaseModel , root_validator , validator
35
+ from requests .adapters import HTTPAdapter , Retry
35
36
36
37
import zenml
37
38
from zenml .analytics import source_context
@@ -3183,6 +3184,9 @@ def session(self) -> requests.Session:
3183
3184
)
3184
3185
3185
3186
self ._session = requests .Session ()
3187
+ retries = Retry (backoff_factor = 0.1 , connect = 5 )
3188
+ self ._session .mount ("https://" , HTTPAdapter (max_retries = retries ))
3189
+ self ._session .mount ("http://" , HTTPAdapter (max_retries = retries ))
3186
3190
self ._session .verify = self .config .verify_ssl
3187
3191
token = self ._get_auth_token ()
3188
3192
self ._session .headers .update ({"Authorization" : "Bearer " + token })
You can’t perform that action at this time.
0 commit comments