Skip to content

Conversation

@chriseclectic
Copy link
Collaborator

@chriseclectic chriseclectic commented Jan 7, 2022

Summary

Fixes #584, partially fixes #592

The run analysis method was trying to add a blocking callback from within another callback which could lead to errors or incorrect behavior. Since the method is already run as a callback this changes the blocking to just be a regular part of the code to fix its intended behavior.

Details and comments

There are still some issues with how analysis callbacks work due to the add_done_callback mechanism of Python futures that I want to change which should hopefully fix the remaining issues with blocking on experiments which I will do in a separate PR.

@chriseclectic chriseclectic added backport stable potential The issue or PR might be minimal and/or import enough to backport to stable Changelog: Bugfix Include in the "Fixed" section of the changelog labels Jan 7, 2022
Copy link
Collaborator

@nkanazawa1989 nkanazawa1989 left a comment

Choose a reason for hiding this comment

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

LGTM

@chriseclectic chriseclectic merged commit 109e25e into qiskit-community:main Jan 12, 2022
nkanazawa1989 pushed a commit to nkanazawa1989/qiskit-experiments that referenced this pull request Jan 19, 2022
@chriseclectic chriseclectic deleted the fix-comp-analysis branch March 3, 2022 22:44
paco-ri pushed a commit to paco-ri/qiskit-experiments that referenced this pull request Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport stable potential The issue or PR might be minimal and/or import enough to backport to stable Changelog: Bugfix Include in the "Fixed" section of the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apparently sub-experiments are not blocked Batch of parallel fails

2 participants