Skip to content
Snippets Groups Projects
Commit 32493f2373c1 authored by Samuel Trégouët's avatar Samuel Trégouët
Browse files

postcommit_event instead of precommit_event

precommit_event is too early to access in_state relation of workflowable entity
parent 3cbf5bd3db0f
No related branches found
No related tags found
No related merge requests found
......@@ -69,7 +69,7 @@
class IndexEsOperation(hook.DataOperationMixIn, hook.Operation):
def precommit_event(self):
def postcommit_event(self):
indexer = self.cnx.vreg['es'].select('indexer', self.cnx)
es = indexer.get_connection()
if es is None or not self.cnx.vreg.config['index-name']:
......
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