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

Multiple server runs with sim-time reset server to past date #1117

Open
vindard opened this issue Dec 6, 2024 · 0 comments
Open

Multiple server runs with sim-time reset server to past date #1117

vindard opened this issue Dec 6, 2024 · 0 comments

Comments

@vindard
Copy link
Contributor

vindard commented Dec 6, 2024

Bug

If we configure a sim-time (e.g. 2021-01-01) when the server starts it starts time from this point and does operations. If we stop the server and restart it, it doesn't continue from its progressed sim-time, but instead restarts time from the configured time.

This is especially problematic for job scheduling if for e.g. we create a facility and then stop the server, and start the server again to create another facility (all long-running jobs are now scheduled way into the future from the server's point of reference).

Potential fix

Flush sim-time to the db periodically and read from db before using default sim-time start in config

@vindard vindard changed the title multiple server runs with sim-time Multiple server runs with sim-time reset server to past date Dec 6, 2024
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