summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py
diff options
context:
space:
mode:
Diffstat (limited to 'components/pm-subscription-handler/pmsh_service/pmsh_service_main.py')
-rwxr-xr-xcomponents/pm-subscription-handler/pmsh_service/pmsh_service_main.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py b/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py
index 6b6b9baa..f92fdc91 100755
--- a/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py
+++ b/components/pm-subscription-handler/pmsh_service/pmsh_service_main.py
@@ -41,18 +41,22 @@ def main():
sys.exit(e)
app_conf_thread = PeriodicTask(10, app_conf.refresh_config)
+ app_conf_thread.name = 'app_conf_thread'
app_conf_thread.start()
policy_response_handler = PolicyResponseHandler(policy_mr_sub, app_conf, app)
policy_response_handler_thread = PeriodicTask(25, policy_response_handler.poll_policy_topic)
+ policy_response_handler_thread.name = 'policy_event_thread'
aai_event_thread = PeriodicTask(20, process_aai_events,
args=(aai_event_mr_sub, policy_mr_pub, app, app_conf))
+ aai_event_thread.name = 'aai_event_thread'
subscription_handler = SubscriptionHandler(policy_mr_pub, app, app_conf, aai_event_thread,
policy_response_handler_thread)
subscription_handler_thread = PeriodicTask(30, subscription_handler.execute)
+ subscription_handler_thread.name = 'sub_handler_thread'
subscription_handler_thread.start()
periodic_tasks = [app_conf_thread, aai_event_thread, subscription_handler_thread,