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

Parallel job generation causes wagons to be assigned to multiple jobs #78

Open
fauxnik opened this issue Jun 20, 2024 · 1 comment
Open

Comments

@fauxnik
Copy link
Owner

fauxnik commented Jun 20, 2024

Triggering job generation via Comms Radio causes job generation to happen in parallel when multiple stations are listed. This happens for stations that are located close together, like Machine Factory and Machine Factory Military Base. When this occurs, each involved wagon ends up being assigned to multiple jobs because the check for job assignment only happens at the beginning of the process.

@fauxnik
Copy link
Owner Author

fauxnik commented Jun 20, 2024

Perhaps this could be solved by placing a mutex lock around the job generation algorithm?

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