Timeout on restarting completed workflows#5231
Conversation
|
It might be worth prising apart the restart timer work from the update data store changes included on this branch so that we can get this in sooner. I think the data store changes will require more work, reviewing & testing. |
I must have made those changes for a reason, I don't think they were entirely incidental to the main change. Unfortunately, I've forgotten by now. I'll take a look ... |
7be8709 to
02eb7f4
Compare
|
(Rebased) |
@oliver-sanders - the new timeout required tweaking the scheduler's datastore-update call slightly. The problem was, the datastore update method itself contained code to figure out if the datastore actually needs updating. It was easier to accommodate the new change (and it makes more sense too) to have the method just update the datastore, and decide whether or not to call it one level up in the stack. So it's a small change - I just moved that code out into the caller. |
Fixed - by not attempting to poll tasks on restart if the task pool is empty. |
|
(Temporarily reverting to DRAFT while I investigate something ...) |
Find anything? |
|
Added an integration test here - hjoliver#33 |
restart timeout: add integration test
Sorry, I no longer recall what in hell I was talking about there. I have a vague feeling I was testing something else that I thought might affect this branch, but I guess I got distracted and didn't get back to this. I took another quick scan through this change though and I can't see anything wrong with it. Plus, it works. Merged your side PR @oliver-sanders - plz take over this PR while I'm away... |
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
|
This has the potential to interact with #5592 which was merged after this branch was forked. Likely test failures, should do a manual test jamming in sleeps to make the reload appear slow (see PR for details) to ensure that is still working. |
|
Nope, went through fine, I've tested reload with sleeps jammed in and it appears to have worked well. |
|
(plz squash merge) |
|
1 unresolved comment: #5231 (comment) |
Co-authored-by: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com>
|
(Pressed the commit button) |
|
I have carried out the tests described, and also run the integration and |

Close #5078
scheduler.update_data_structure())Check List
CONTRIBUTING.mdand added my name as a Code Contributor.setup.cfgandconda-environment.yml.CHANGES.mdentry included if this is a change that can affect users?.?.xbranch.