Skip to content
Snippets Groups Projects
Commit d9516a98 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Use sqlalchemy events hook to trigger tasks

Use the before_flush hook to trigger the core services update.
It's much nicer than having to call a method in several places.

The core services update is triggered on creation/modification/deletion
of an Interface.

In the before_flush we can manipulate the session (add objects) but we
shouldn't call commit.
The db.session.commit() was removed from the launch_task method.
parent ff3295e4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment