revert deprecated state validation map - #169
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Looks good to me, thought it leaves a gap in current functionality which we might want to address.
@alexiswl @raylrui happy for feedback! Currently runs "stuck" in DRAFTs and RUNNING states, which apparently seems happen quite regularly with manual submissions, can be deprecated (which helps with declutter and readability). If we disable this transition, we have to deal with the fall-out. An option would be to introduce That would give the following transition rules. Normal/regular transitions:
Additional new transitions:
Notes on (automatic) data clean-up:
Again, there would be no two-step approach, no review or "warning" when CANCELLED data is removed. However, I think that's OK as I assume processes would only be cancelled if the reason is already known and there is no interest in any potentially generated data. Also, note: the "cancel" action would have to remain a human intervention. Any automatic abortion should probably be handled as failure (otherwise we'd loose the human control over data deletion and cleanup). |
yes @reisingerf , I agree with introducing CANCELLED as a distinct terminal state. It gives us a clean way to terminate stuck DRAFT/READY/transitive runs without overloading DEPRECATED. There are a few implementation details we should cover:
|
|
Yes, that sounds good! Also agree with 1. and 2. |
|
Before we merge this, can we ensure that CANCELLED is available for DRAFT runs? Trying to get people into the habit of removing drafts that will not go into a running state |
This PR will merge after the #173 for emit wrsc events for state transition api. yes, @alexiswl , CANCELLED will be implemented as a distinct, human-only terminal state and release it alongside the DEPRECATED restriction:
|
|
Merged. For verified permission, we will implement that in our next PR. |
Resolve #163.
Temporarily only allow SUCCEEDED to transition to DEPRECATED.