[PMSH] Bug fix to include ip in event
[dcaegen2/services.git] / components / pm-subscription-handler / pmsh_service / pmsh_service_main.py
index 6b6b9ba..f92fdc9 100755 (executable)
@@ -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,