From 9fa0874664c0e556ba20ec2403eab6b1edb49906 Mon Sep 17 00:00:00 2001 From: zhen Date: Mon, 5 Feb 2024 21:46:21 +0800 Subject: [PATCH] [Bugfix] Fix failed test case test_cancel_experiment (#1977) # Description Please add an informative description that covers that changes made by the pull request and link all relevant issues. # All Promptflow Contribution checklist: - [ ] **The pull request does not introduce [breaking changes].** - [ ] **CHANGELOG is updated for new features, bug fixes or other significant changes.** - [ ] **I have read the [contribution guidelines](../CONTRIBUTING.md).** - [ ] **Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: [suggested workflow](../CONTRIBUTING.md#suggested-workflow).** ## General Guidelines and Best Practices - [ ] Title of the pull request is clear and informative. - [ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, [see this page](https://github.com/Azure/azure-powershell/blob/master/documentation/development-docs/cleaning-up-commits.md). ### Testing Guidelines - [ ] Pull request includes test coverage for the included changes. --- src/promptflow/promptflow/_sdk/_submitter/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/promptflow/promptflow/_sdk/_submitter/utils.py b/src/promptflow/promptflow/_sdk/_submitter/utils.py index d276f1ed72b..31c31ad10d4 100644 --- a/src/promptflow/promptflow/_sdk/_submitter/utils.py +++ b/src/promptflow/promptflow/_sdk/_submitter/utils.py @@ -456,7 +456,7 @@ def _stop_orchestrator_process(orchestrator): # Connect to named pipe to stop the orchestrator process. win32file.CreateFile( - r"\\.\pipe\{}".format(orchestrator.name), + r"\\.\pipe\{}".format(orchestrator.experiment_name), win32file.GENERIC_READ | win32file.GENERIC_WRITE, 0, None,