Skip to content
  • Jessica Severin's avatar
    improved dynamic synch logic. Only case where the 5 minute delay is needed · da413295
    Jessica Severin authored
    is when there are lots of workers 'WORKING' so as to avoid them falling over
    each other.  The 'WORKING' state only exists in the middle of a large run.
    When the last worker dies, the state is 'ALL_CLAIMED' so the sync on death
    will happen properly.  As the last pile of workers die they will all do
    a synch, but that's OK since the system needs to be properly synched when
    the last one dies since there won't be anybody left to do it.
    Also added 10 minute check for if already 'SYNCHING' to deal with case if
    worker dies in the middle of 'SYNCHING'.
    da413295