Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bugs in verdi process watch #3260

Merged
merged 1 commit into from Aug 17, 2019

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Aug 16, 2019

Fix #3128

The signature of the callback function did not define the communicator
causing an exception to be thrown. The callback function is improved to
make the formatted messages easier to read. The main command also has
extra information message echoed to explain to the user how to interrupt
the command. Finally, the usage of a Future to block the thread
indefinitely has been replaced by a simple while loop calling sleep
because the future was swallowing the keyboard interrupt, making it
impossible to exit from the command that way.

The signature of the callback function did not define the `communicator`
causing an exception to be thrown. The callback function is improved to
make the formatted messages easier to read. The main command also has
extra information message echoed to explain to the user how to interrupt
the command. Finally, the usage of a `Future` to block the thread
indefinitely has been replaced by a simple while loop calling `sleep`
because the future was swallowing the keyboard interrupt, making it
impossible to exit from the command that way.
Copy link
Contributor

@zhubonan zhubonan left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me.

@sphuber sphuber merged commit adbae81 into aiidateam:develop Aug 17, 2019
@sphuber sphuber deleted the fix_3128_verdi_process_watch branch August 17, 2019 12:14
d-tomerini pushed a commit to d-tomerini/aiida_core that referenced this pull request Sep 30, 2019
The signature of the callback function did not define the `communicator`
causing an exception to be thrown. The callback function is improved to
make the formatted messages easier to read. The main command also has
extra information message echoed to explain to the user how to interrupt
the command. Finally, the usage of a `Future` to block the thread
indefinitely has been replaced by a simple while loop calling `sleep`
because the future was swallowing the keyboard interrupt, making it
impossible to exit from the command that way.
d-tomerini pushed a commit to d-tomerini/aiida_core that referenced this pull request Oct 16, 2019
The signature of the callback function did not define the `communicator`
causing an exception to be thrown. The callback function is improved to
make the formatted messages easier to read. The main command also has
extra information message echoed to explain to the user how to interrupt
the command. Finally, the usage of a `Future` to block the thread
indefinitely has been replaced by a simple while loop calling `sleep`
because the future was swallowing the keyboard interrupt, making it
impossible to exit from the command that way.
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.

verdi process watch error
2 participants