Spaces:
Running
Running
Trisha Tomy
commited on
Commit
·
0cc7808
1
Parent(s):
7e39dbf
moved env timeout outside
Browse files
app.py
CHANGED
@@ -32,9 +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 |
-
#
|
36 |
-
"environment_timeout": 1800.0, # Increased from default 30 seconds, and your intended 120 to 1800
|
37 |
-
# --- END CHANGE ---
|
38 |
"screenshot_delay": 3.0, # Increased delay for full page render before screenshot
|
39 |
"include_html": True, # Include full HTML for richer observations
|
40 |
"include_poi_text": True, # Keep including points of interest text
|
@@ -50,7 +48,18 @@ async def initialize_runner():
|
|
50 |
"api_key": hf_api_token
|
51 |
}
|
52 |
}
|
53 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
})
|
55 |
|
56 |
# --- ADDED DEBUG LOGGING HERE ---
|
|
|
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": 1800.0, # <-- THIS LINE WAS IN THE WRONG PLACE IN app.py
|
|
|
|
|
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
|
|
|
48 |
"api_key": hf_api_token
|
49 |
}
|
50 |
}
|
51 |
+
},
|
52 |
+
# --- MOVE environment_timeout HERE, AS A TOP-LEVEL KEY ---
|
53 |
+
"environment_timeout": 1800.0,
|
54 |
+
# You can also set other top-level RunnerConfig fields here if desired,
|
55 |
+
# e.g., "action_timeout": 1800.0, "max_steps": 150, "task_timeout": 18000.0,
|
56 |
+
# Ensure these match your desired values and not the defaults from RunnerConfig.
|
57 |
+
# Based on your logs, action_timeout and task_timeout seem to be default, so let's add them:
|
58 |
+
"action_timeout": 1800.0, # As per your earlier runner.py __main__ block
|
59 |
+
"task_timeout": 18000.0, # As per your earlier runner.py __main__ block
|
60 |
+
"max_steps": 150, # As per your earlier runner.py __main__ block
|
61 |
+
"logger_level": "DEBUG", # Set this to DEBUG for more detailed logging during troubleshooting
|
62 |
+
# --- END OF MOVED KEY ---
|
63 |
})
|
64 |
|
65 |
# --- ADDED DEBUG LOGGING HERE ---
|