-
Notifications
You must be signed in to change notification settings - Fork 216
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
Allow verdi status
to skip checks
#4181
Conversation
Well thats annoying, this all run fine locally |
Codecov Report
@@ Coverage Diff @@
## develop #4181 +/- ##
===========================================
+ Coverage 78.89% 78.89% +0.01%
===========================================
Files 467 467
Lines 34500 34503 +3
===========================================
+ Hits 27215 27218 +3
Misses 7285 7285
Continue to review full report at Codecov.
|
@chrisjsewell why don't you need the status of RabbitMQ but you do need it for Postgres? I can see the point of the daemon. It not running is not really a "failure". So would it maybe make more sense to turn the daemon notification in a warning by default, i.e. swapping out the red cross for a yellow circle or something, and just returning 0. Anyway, |
Well rabbitmq is only required for running computations. If for example you just want to spin up a container to inspect an existing database, you only want to check that it is ready for access. |
Yep something like that could work; I just would like a consistent/simple way to check if the "AiiDA environment" is either:
|
At least for my use case, I don't really care what is printed lol; I'm just using it as an "API" For example in /~https://github.com/chrisjsewell/aiida-vcode-ext/runs/781411414?check_suite_focus=true, I'm currently using:
|
I opened a PR against your branch to get rid of the |
The daemon not running is not the same as not being able to connect to the Postgres database or the RabbitMQ message broker. So it shouldn't return a non-zero exit code either. If the user wants to poll this, the command `verdi daemon status` should be used instead.
Yep thats great cheers, and I like the new pytest fixture 👌 |
Cheers. I added it recently as it simplifies a great deal of test code. Maybe should send a quick email soon to the team to notify everyone of its existence |
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.
Good to go, thanks @chrisjsewell
This PR adds flags to
verdi status --no-rmq --no-daemon
.My specific use case for this is, when initiating a Docker container, I want to wait for the environment to finished initialising before starting a daemon by polling the exit code of
verdi status
.