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 backend issues and reset client db #981

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kchilleri
Copy link
Collaborator

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 time beeflow 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant