Fix backend issues and reset client db #981
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes issue #974.
client_db stores the following variables:
hostname of the front end/back end beeflow was started from, default is empty
backend flag: default is empty, "true" if beeflow was started on a compute node
When doing
beeflow core start
: client database is populated (--backend, when appropriate).When doing
beeflow core stop
: client database gets reset, back to default values.The issues appeared when
beeflow core stop
was not used and therefore the client database was not reset. I have added some checks for all cases I could think of when this happens. For example, If beeflow is started on a compute node and the allocation ends, or is relinquished, I have added checks every timebeeflow core start
is returned that check the database values and resets them accordingly.Also, I added an error check that checks if the user is using the
--backend
flag when not on a backend node.A test for the client database has been updated as well.