diff --git a/doc/source/configuration/config-guide.rst b/doc/source/configuration/config-guide.rst index 89be619fe..8b4bae2e2 100644 --- a/doc/source/configuration/config-guide.rst +++ b/doc/source/configuration/config-guide.rst @@ -177,10 +177,7 @@ directory. key value pairs to be passed as kwargs into the publisher:: [notifier] - notify = [ - {'type': 'webhook', 'url': 'http://example.com', 'headers': {'X-Auth-Token': 'XXXX'}}, - {'type': 'custom_publisher'} - ] + notify = [ {"type": "webhook", "url": "http://example.com", "headers": {"X-Auth-Token": "XXXX"}}, {"type": "custom_publisher"} ] #. Finally, try to run mistral engine and verify that it is running without any error:: diff --git a/mistral/engine/workflows.py b/mistral/engine/workflows.py index f697b9daa..e241df02e 100644 --- a/mistral/engine/workflows.py +++ b/mistral/engine/workflows.py @@ -96,7 +96,8 @@ class Workflow(object): "workflow_id": self.wf_ex.workflow_id, "state": self.wf_ex.state, "state_info": self.wf_ex.state_info, - "project_id": self.wf_ex.project_id + "project_id": self.wf_ex.project_id, + "task_execution_id": self.wf_ex.task_execution_id } def _send_notification(): diff --git a/mistral/notifiers/default_notifier.py b/mistral/notifiers/default_notifier.py index 5e8ac33f8..00bd6ef0e 100644 --- a/mistral/notifiers/default_notifier.py +++ b/mistral/notifiers/default_notifier.py @@ -29,6 +29,8 @@ class DefaultNotifier(base.Notifier): def notify(self, ex_id, data, event, timestamp, publishers): ctx = auth_ctx.ctx() + data['event'] = event + for entry in publishers: params = copy.deepcopy(entry) publisher_name = params.pop('type', None)