Skip to content

Feature/simulation management#6

Draft
Bachibouzouk wants to merge 3 commits intomasterfrom
feature/simulation-management
Draft

Feature/simulation management#6
Bachibouzouk wants to merge 3 commits intomasterfrom
feature/simulation-management

Conversation

@Bachibouzouk
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Collaborator

@henhuy henhuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should make it somehow save so that others can't delete scenarios easily?
Or we add an option to toggle this on/off and make it off per default?

Comment thread django_oemof/views.py
hook_type=hooks.HookType.SETUP, scenario=scenario, data=parameters, request=request
)
task = simulation.simulate_scenario.delay(scenario, parameters)
task = current_app.tasks["django_oemof.simulation.simulate_scenario"].delay(scenario, parameters)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you make use of current_app?
Is this a good practice? Did not read about this yet...

@Bachibouzouk Bachibouzouk force-pushed the feature/simulation-management branch from d835da0 to f42b59f Compare September 16, 2025 16:40
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

Successfully merging this pull request may close these issues.

2 participants