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

Fix inventory update not triggered

The inventory update should be triggered separately from the core
services update.
Both jobs have been decoupled.

INFRA-1290
parent a189cb15
No related branches found
No related tags found
No related merge requests found
......@@ -1818,10 +1818,8 @@ def before_flush(session, flush_context, instances):
See http://docs.sqlalchemy.org/en/latest/orm/session_events.html#before-flush
"""
if trigger_core_services_update(session):
# This will also trigger an inventory update
return
trigger_inventory_update(session)
trigger_core_services_update(session)
# call configure_mappers after defining all the models
......
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