How to stop a running experiment #8297
-
|
I used run_experiment from phoenix.experiments to create an experiment. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Hi @liubei1195! I'm Dosu and I’m helping the phoenix team. There isn't a built-in or documented way to programmatically stop a running experiment started with To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
Hey @liubei1195, thanks for posting. Can you provide some context on how you are running the experiment (e.g., via a notebook, a script, an automated CI process) and under what circumstances you want to end the experiment early? |
Beta Was this translation helpful? Give feedback.
Hi @liubei1195! I'm Dosu and I’m helping the phoenix team.
There isn't a built-in or documented way to programmatically stop a running experiment started with
run_experimentin Phoenix. The function is designed to run to completion, and the only way to interrupt it is by stopping the Python process itself (for example, with a KeyboardInterrupt or by terminating the process) — this is standard Python behavior, not specific to Phoenix. Thetimeoutparameter only applies to individual tasks, not the experiment as a whole. Forcibly stopping the process may result in incomplete results or partial writes, so use caution if your experiment writes to disk or external systems.If you have a speci…