Just a wild guess but could a race condition between a subtask marking itself complete and your “supervisor” process that checks if no subtasks are incomplete.
So when subtask 3 for example marks itself complete if your “supervisor” checks before your subtask 4 is added it would see all subtasks complete. A bandaid could be only marking a subtask complete after the next subtask is inserted.
Sounds like you’re using a DB to track the jobs. Is that because your workers are distributed?
I'm hoping for the bandaid problem. I'm getting ready to pop open the code now.
It's a DB... I think it's a DB because it's interfacing with web pages that could be open in different locations by multiple people at once.
I'm not a native computer programmer so I wouldn't know what another solution would look like. I just take the code as it was created by others and assume it's the best solution and just try to find the bandaid problems.
Fair enough. I'm an engineer, I see a problem and I have to try to solve it :D
Thread collapsed
Thread collapsed