-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add reset command from previous branch #724
Conversation
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.
See beeflow/wf_manager/resources/wf_utils.py
You can use get_bee_workdir to find the path
@aquan9 As I was reviewing I found some minor changes where .beeflow was still used and will commit them. However, I'm still testing. I believe I found an error if someone has a workflow running. I'll post soon. |
This is an error that occured if a reset was done while workflows were still running. I'm thinking we should check for running workflows using |
oops forgot to post the error:
|
So if I had a workflow running when I did the And more if there was more than one workflow running. I think we should check for running workflows and inform the user that they will be cancelled if they continue with the reset, then we will need to kill the GDB instances for that user. |
I'm wondering if the changes to fix this need to happen at the level of "quit" call. Because as it stands, the "beeflow stop" command should also have the same problem. Both beeflow stop, and beeflow reset are calling:
|
Discussion during Oct 10 meeting: neo4j orphaned processes have a file on ~/.beeflow so The pid for each neo4j instance is in the wf_manager database so we could kill those. We also need to evaluate beeflow cancel <wf_id> which leaves orphaned neo4j instances around We still need to look at using a different database system, but fix this now. For now should we search for any running workflows and if there are print a message telling the user they need to either wait or cancel the workflows. |
1.) I get this error if -a is used and <bee_workdir>.backup already exists: 2.) Maybe we should only be archiving the archives directory and the logs. I get this error when I try to archive (when the above doesn't apply). I think it has to do with some of the active sockets and processes. I'm thinking we should only copy <bee_workdir>/archives and logs, maybe the db files. Would that help? If I don't care to keep anything everything works fine. |
@aquan9 I think if you will just copy the logs and archives the -a option will work. You may want to query if they want to copy the container_archive directory if it exists, since the user can change that to another location in the configuration file and the files can be quite large. |
@jtronge Since I made the last changes would you please review them |
This seems to work for me. If I tried to submit a workflow with the |
Make a beeflow reset command with warning message. The command just finds and removes the .beeflow directory.
This should hopefully resolve #708
This is a continuation of PR #712