-
Notifications
You must be signed in to change notification settings - Fork 192
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
Engine: Improve error message when submitting without broker #6465
Engine: Improve error message when submitting without broker #6465
Conversation
Perhaps the error message would be even better with a link to the docs which gives even more background information and tells users how they can configure the broker. That would require #6455 to be merged before that, because currently those docs don't exist yet. Still, I am always a bit hesitant to add docs links in error messages since they can easily go stale. I know that SQLalchemy solves this somewhat by using shortened urls the referent of which can then be updated with redirects in case the documentation links change. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6465 +/- ##
==========================================
+ Coverage 77.51% 77.76% +0.26%
==========================================
Files 560 561 +1
Lines 41444 41796 +352
==========================================
+ Hits 32120 32500 +380
+ Misses 9324 9296 -28 ☔ View full report in Codecov by Sentry. |
The `aiida.engine.launch.submit` method was just raising a vague `AssertionError` in case the runner did not have a communicator, which is the case if it was constructed without a communicator which in turn happens for profiles that do not configure a broker. Since profiles without brokers are now supported and users are bound to try to submit anyway, the error message should be clearer.
351c671
to
0d6397f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just had a look (with the new error message). Good to go for me!
…am#6465) The `aiida.engine.launch.submit` method was just raising a vague `AssertionError` in case the runner did not have a communicator, which is the case if it was constructed without a communicator which in turn happens for profiles that do not configure a broker. Since profiles without brokers are now supported and users are bound to try to submit anyway, the error message should be clearer.
Fixes #6374
The
aiida.engine.launch.submit
method was just raising a vagueAssertionError
in case the runner did not have a communicator, which is the case if it was constructed without a communicator which in turn happens for profiles that do not configure a broker.Since profiles without brokers are now supported and users are bound to try to submit anyway, the error message should be clearer.