Skip to content
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

robot allocator should check if task still exists and drop job otherwise #84

Open
Elucidation opened this issue Jun 11, 2023 · 0 comments

Comments

@Elucidation
Copy link
Owner

It's possible if rare, for the order processor to reset the database and drop all tasks while robot allocator is still running. If the robot allocator had jobs associated with tasks that are now dropped, it may still try to complete that task even if it doesn't exist anymore.

While this will not crash the system, it does cause the robots to move an item to the station that no longer has that task/order, so it's wasted time.

Instead, one option is on job updates, to check if the task still exists, and if not to drop the item/job/assignment for that robot.
This might add too many extra redis queries though, so perhaps only do this check on item pickup/drop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant