Skip to content

Commit e93fde5

Browse files
committed
log task errors
1 parent 725e7a0 commit e93fde5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/agentlab/experiments/graph_execution_ray.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33

44
import bgym
55
import ray
6-
from ray.util import state
7-
86
from agentlab.experiments.exp_utils import _episode_timeout, run_exp
7+
from ray.util import state
98

109
logger = logging.getLogger(__name__)
1110

@@ -79,6 +78,7 @@ def poll_for_timeout(tasks: dict[str, ray.ObjectRef], timeout: float, poll_inter
7978
try:
8079
result = ray.get(task)
8180
except Exception as e:
81+
logger.exception(f"Task failed: {e}")
8282
result = e
8383
results.append(result)
8484

0 commit comments

Comments
 (0)