Cleanup transport along RPC clients

This fixes a bad weird condition in the API server related to
cron-triggers and SIGHUP. The parent API server creates a RPC connection
when creating workflows from cron. If a SIGUP signal happens after, the
child inherits the connection, but it's non-functional.

Change-Id: Ic98e2db02abd8483591756d73e06784cc2e9cbe3
Closes-Bug: #1789680
This commit is contained in:
Thomas Herve 2018-09-27 11:45:42 +02:00
parent 8720a2711b
commit 5c005a7926

View File

@ -61,6 +61,8 @@ def cleanup():
_EVENT_ENGINE_CLIENT = None
_NOTIFIER_CLIENT = None
base.cleanup()
def get_engine_client():
global _ENGINE_CLIENT