Skip to content

Commit 9df911a

Browse files
authored
Merge pull request #1056 from parea-ai/refactor-add-traceback
refactor: add traceback to experiment failure
2 parents 06e51a1 + dd2c00c commit 9df911a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

parea/experiment/experiment.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ def limit_concurrency_sync(sample):
155155
except Exception as e:
156156
status = ExperimentStatus.FAILED
157157
if stop_on_error:
158+
import traceback
159+
160+
traceback.print_exc()
158161
print(f"\nExperiment stopped due to an error (note you can deactivate this behavior by setting stop_on_error=False): {str(e)}\n")
159162
for task in tasks:
160163
task.cancel()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "poetry.core.masonry.api"
66
[tool.poetry]
77
name = "parea-ai"
88
packages = [{ include = "parea" }]
9-
version = "0.2.204"
9+
version = "0.2.205"
1010
description = "Parea python sdk"
1111
readme = "README.md"
1212
authors = ["joel-parea-ai <[email protected]>"]

0 commit comments

Comments
 (0)