Forked from
ICS Control System Infrastructure / csentry
Source project has a limited visibility.
-
Benjamin Bertrand authored
Regression from b9c1b838 Calling utils.trigger_ioc_repository_creation runs launch_task which does a db.session.add(task). This raises: SAWarning: Usage of the 'Session.add()' operation is not currently supported within the execution stage of the flush process. Results may not be consistent. Consider using alternative event listeners or connection-level operations instead. SAWarning: Attribute history events accumulated on 1 previously clean instances within inner-flush event handlers have been reset, and will not result in database updates. The result is that the host is not added to the elasticsearch index. We can't trigger the task in after_update/after_insert events. Perform the call in the view instead. It's temporary anyway. This should be handled by IOC Factory. JIRA INFRA-1015
Benjamin Bertrand authoredRegression from b9c1b838 Calling utils.trigger_ioc_repository_creation runs launch_task which does a db.session.add(task). This raises: SAWarning: Usage of the 'Session.add()' operation is not currently supported within the execution stage of the flush process. Results may not be consistent. Consider using alternative event listeners or connection-level operations instead. SAWarning: Attribute history events accumulated on 1 previously clean instances within inner-flush event handlers have been reset, and will not result in database updates. The result is that the host is not added to the elasticsearch index. We can't trigger the task in after_update/after_insert events. Perform the call in the view instead. It's temporary anyway. This should be handled by IOC Factory. JIRA INFRA-1015
Code owners
Assign users and groups as approvers for specific file changes. Learn more.