-
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
Archive Cancelled Workflows #939
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.
In general we have been marking states as Archived/{final_state} as they are archive. So I think we should stick to this format. I'll look to see how this is used. I think it is also used when there is a reset.
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.
@Leahh02 This actually ended up with the state we need for the workflow.
clamr be196f Archived/Cancelled
when I ran it because when a workflow is archived it automatically adds the final state.
I'm not sure what happened to the state you add here.
Also, I'd like to see any dags that were run in the graphml files as well as the final dag in the archive.
Sorry that this wasn't asked for in the issue. I ran some dags before cancelling the workflow. There are none in the archive. I'm thinking someone may have a complex workflow that they cancelled due to something like an upcoming DST and they want to quickly see what parts actually ran.
I think I made the state "Cancelled and Archived" because I thought that would be reflected in the GDB. It's not, so I changed it back to the way it was for simplicity. |
Right now the unit tests aren't testing archiving the workflow after it's been archived. I added the line |
all of the generated DAGs are now also being saved to the archive |
Now the workflow is not actually being cancelled, instead it actually runs to completion: $ beeflow query 0a $ beeflow query 0a I didn't have time to look, but most likely the wf_manager is looking for the Cancelled state to stop it from running. |
@Leahh02 This is not caused by your PR because it also occurs in the devlop branch. |
That's so strange. I noticed it once while I was running a workflow, but I canceled it while tasks were completing, so I figured that's why it finished. That's definitely not the case in the example you gave. I'll try to figure it out |
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.
I was debating whether I should make this call to archive the workflow in wf_actions or wf_update. The calls to archive_workflow for other states are in wf_update, but I put it wf_actions to keep the full lifecycle of actions related to cancelling the workflow in one place.