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

When changing scenarios, Job related variables are not properly reset/initialized #2

Open
Fabulani opened this issue Jun 14, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Fabulani
Copy link
Owner

When the scenario is changed by manipulating the selected_flexibility, Jobs don't reset (and keep their status), and Job queues keep their values.

If we for example do the following transition:

flexibility0 -> flexibility1 -> flexibility0

The scenario flexibility0 will have 6 Jobs initialized in MQTT, instead of the desired 3. This happens because in the Initialize state, the Job queue is not being reset to initial values, and on top of that we create 3 new Jobs.

The solution is to properly set up the Initialize and Shutdown states to make sure that Scenarios are being loaded in a desired state.

@Fabulani Fabulani added the bug Something isn't working label Jun 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant