Skip to content

fix: correctly check pmac execution status and messages#1235

Open
shihab-dls wants to merge 4 commits into
mainfrom
1107_check_status
Open

fix: correctly check pmac execution status and messages#1235
shihab-dls wants to merge 4 commits into
mainfrom
1107_check_status

Conversation

@shihab-dls

Copy link
Copy Markdown
Contributor

Closes #1107

Checks PMAC execute_status and execute_message after execute_profile returns, and raises appropriate error messages if not successful.

@shihab-dls

shihab-dls commented Apr 2, 2026

Copy link
Copy Markdown
Contributor Author

Should: add tests to cover failed execution cases to fix codecov.

Comment on lines +175 to +179
async for pmac_status in observe_value(
self.pmac_ref().trajectory.execute_profile, done_timeout=DEFAULT_TIMEOUT
):
if pmac_status is False:
break

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was meant to observe_value on execute_status and raise with the value of execute_message if it fails. A similar check is needed where we do build_profile and append_profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Check build, execute and append status before running a scan.

2 participants