Spaces:
Running
Running
Trisha Tomy
commited on
Commit
·
cb34eae
1
Parent(s):
d078da9
updatting env timeouts
Browse files- app.py +1 -1
- src/proxy_lite/app.py +2 -2
app.py
CHANGED
@@ -32,7 +32,7 @@ async def initialize_runner():
|
|
32 |
"homepage": "https://dwd000006jia1mae.lightning.force.com/lightning/setup/AccountForecastSettings/home",
|
33 |
"headless": True, # Keep headless for production environments
|
34 |
"launch_args": ["--no-sandbox", "--disable-setuid-sandbox"] ,
|
35 |
-
"environment_timeout":
|
36 |
"screenshot_delay": 3.0, # Increased delay for full page render before screenshot
|
37 |
"include_html": True, # Include full HTML for richer observations
|
38 |
"include_poi_text": True, # Keep including points of interest text
|
|
|
32 |
"homepage": "https://dwd000006jia1mae.lightning.force.com/lightning/setup/AccountForecastSettings/home",
|
33 |
"headless": True, # Keep headless for production environments
|
34 |
"launch_args": ["--no-sandbox", "--disable-setuid-sandbox"] ,
|
35 |
+
"environment_timeout": 120, # Increased from default 30 seconds
|
36 |
"screenshot_delay": 3.0, # Increased delay for full page render before screenshot
|
37 |
"include_html": True, # Include full HTML for richer observations
|
38 |
"include_poi_text": True, # Keep including points of interest text
|
src/proxy_lite/app.py
CHANGED
@@ -18,7 +18,7 @@ def get_user_config(config_expander):
|
|
18 |
"viewport_width": 1280,
|
19 |
"viewport_height": 1920,
|
20 |
"include_poi_text": True,
|
21 |
-
"homepage": "https://
|
22 |
"keep_original_image": False,
|
23 |
"headless": False, # without proxies headless mode often results in getting bot blocked
|
24 |
},
|
@@ -37,7 +37,7 @@ def get_user_config(config_expander):
|
|
37 |
"verbose": True,
|
38 |
"task_timeout": 1800, # 30 minutes
|
39 |
"action_timeout": 300,
|
40 |
-
"environment_timeout":
|
41 |
}
|
42 |
|
43 |
with config_expander:
|
|
|
18 |
"viewport_width": 1280,
|
19 |
"viewport_height": 1920,
|
20 |
"include_poi_text": True,
|
21 |
+
"homepage": "https://dwd000006jia1mae.lightning.force.com/lightning/setup/AccountForecastSettings/home",
|
22 |
"keep_original_image": False,
|
23 |
"headless": False, # without proxies headless mode often results in getting bot blocked
|
24 |
},
|
|
|
37 |
"verbose": True,
|
38 |
"task_timeout": 1800, # 30 minutes
|
39 |
"action_timeout": 300,
|
40 |
+
"environment_timeout": 120,
|
41 |
}
|
42 |
|
43 |
with config_expander:
|