Level: Information

Message: Inside hosted service - for nsq


Message: Started the consumer service and handler for NSQ


Message: Notification event with message ID 1846bd71f12c3000 received: {"TemplateId":3,"EntityType":"safety_alerts","EventType":null,"NotifyRoleId":null,"NotifyUserId":null,"NotifyDynamicActor":"AssignedTo","EntityContext":{"Parameters":{"alertId":"2009","orgId":"269","alertLink":"https://sandbox.oqsha.com/#/safety-alerts-v2/edit-safety-alert-v2/2009","EmailFooter":"OQSHA Team","UserName":" ","Changes":"","description":""}},"ActorContext":{"AssignedTo":[4297],"SafetyRepresentative":[4297]},"Metadata":null}


Message: Started processing notification for message ID 1846bd71f12c3000


Message: Looking up the notification handler for message ID 1846bd71f12c3000


Message: Event handling in process for message ID 1846bd71f12c3000


Message: Sending message ID 1846bd71f12c3000 to DLQ


Message: Dead letter envelope for DLQ message: {"SourceTopic":"stg.notification.orchestrator","SourceChannel":"notification-orchestrator","FailedAtUtc":"2026-09-07T07:07:53.4709778Z","Attempts":1,"ErrorType":"OQSHA.Notification.Orchestrator.Exceptions.PermanentOrchestratorException","ErrorMessage":"Safety alert ID 2009 not found for message ID 1846bd71f12c3000","StackTrace":"   at OQSHA.Notification.Orchestrator.NotificationHandlers.SafetyAlertsNotificationHandler.FetchAlertAsync(String messageId, Int32 orgId, Int32 alertId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\SafetyAlertsNotificationHandler.cs:line 249\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.SafetyAlertsNotificationHandler.HandleTemplateBasedAlertNotificationAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\SafetyAlertsNotificationHandler.cs:line 87\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.SafetyAlertsNotificationHandler.ProcessEventAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\SafetyAlertsNotificationHandler.cs:line 45\r\n   at OQSHA.Notification.Orchestrator.Routing.EventRouter.ExecuteAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Routing\\EventRouter.cs:line 38\r\n   at OQSHA.Notification.Orchestrator.Worker.OrchestratorMessageHandler.HandleMessage(IMessage message) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Worker\\OrchestratorMessageHandler.cs:line 44","OriginalBody":"{\"TemplateId\":3,\"EntityType\":\"safety_alerts\",\"EventType\":null,\"NotifyRoleId\":null,\"NotifyUserId\":null,\"NotifyDynamicActor\":\"AssignedTo\",\"EntityContext\":{\"Parameters\":{\"alertId\":\"2009\",\"orgId\":\"269\",\"alertLink\":\"https://sandbox.oqsha.com/#/safety-alerts-v2/edit-safety-alert-v2/2009\",\"EmailFooter\":\"OQSHA Team\",\"UserName\":\" \",\"Changes\":\"\",\"description\":\"\"}},\"ActorContext\":{\"AssignedTo\":[4297],\"SafetyRepresentative\":[4297]},\"Metadata\":null}"}


Message: Sent message ID 1846bd71f12c3000 to DLQ


Message: Started processing notification for message ID 1846ce7ce1ec3000


Message: Looking up the notification handler for message ID 1846ce7ce1ec3000


Message: Event handling in process for message ID 1846ce7ce1ec3000


Message: Sending message ID 1846ce7ce1ec3000 to DLQ


Message: Dead letter envelope for DLQ message: {"SourceTopic":"stg.notification.orchestrator","SourceChannel":"notification-orchestrator","FailedAtUtc":"2026-09-07T08:25:57.3229166Z","Attempts":1,"ErrorType":"OQSHA.Notification.Orchestrator.Exceptions.PermanentOrchestratorException","ErrorMessage":"Work Permit V2 ID 804 not found for message ID 1846ce7ce1ec3000","StackTrace":"   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.FetchWorkPermitAsync(String messageId, Int32 orgId, Int32 workPermitId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 225\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.HandleAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 54\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.ProcessEventAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 46\r\n   at OQSHA.Notification.Orchestrator.Routing.EventRouter.ExecuteAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Routing\\EventRouter.cs:line 38\r\n   at OQSHA.Notification.Orchestrator.Worker.OrchestratorMessageHandler.HandleMessage(IMessage message) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Worker\\OrchestratorMessageHandler.cs:line 44","OriginalBody":"{\"TemplateId\":17,\"EntityType\":\"work_permit_v2\",\"EventType\":null,\"NotifyRoleId\":null,\"NotifyUserId\":null,\"NotifyDynamicActor\":\"ptw_issuer\",\"EntityContext\":{\"Parameters\":{\"workPermitId\":\"804\",\"workPermitV2Id\":\"804\",\"orgId\":\"207\",\"viewLink\":\"https://sandbox.oqsha.com/#/work-permit-v2/view-work-permit/207/804?dlType=viewWorkPermitV2\",\"workPermitLink\":\"https://sandbox.oqsha.com/#/work-permit-v2/view-work-permit/207/804?dlType=viewWorkPermitV2\",\"emailFooter\":\"OQSHA Team\"}},\"ActorContext\":{\"requested_by\":[267],\"ptw_issuer\":[267],\"ptw_approver\":[267],\"ptw_authorizer\":[267]},\"Metadata\":null}"}


Message: Sent message ID 1846ce7ce1ec3000 to DLQ


Message: Started processing notification for message ID 1846cf45072c3000


Message: Looking up the notification handler for message ID 1846cf45072c3000


Message: Event handling in process for message ID 1846cf45072c3000


Message: Sending message ID 1846cf45072c3000 to DLQ


Message: Dead letter envelope for DLQ message: {"SourceTopic":"stg.notification.orchestrator","SourceChannel":"notification-orchestrator","FailedAtUtc":"2026-09-07T08:29:32.2191544Z","Attempts":1,"ErrorType":"OQSHA.Notification.Orchestrator.Exceptions.PermanentOrchestratorException","ErrorMessage":"Work Permit V2 ID 805 not found for message ID 1846cf45072c3000","StackTrace":"   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.FetchWorkPermitAsync(String messageId, Int32 orgId, Int32 workPermitId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 225\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.HandleAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 54\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.ProcessEventAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 46\r\n   at OQSHA.Notification.Orchestrator.Routing.EventRouter.ExecuteAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Routing\\EventRouter.cs:line 38\r\n   at OQSHA.Notification.Orchestrator.Worker.OrchestratorMessageHandler.HandleMessage(IMessage message) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Worker\\OrchestratorMessageHandler.cs:line 44","OriginalBody":"{\"TemplateId\":17,\"EntityType\":\"work_permit_v2\",\"EventType\":null,\"NotifyRoleId\":null,\"NotifyUserId\":null,\"NotifyDynamicActor\":\"ptw_issuer\",\"EntityContext\":{\"Parameters\":{\"workPermitId\":\"805\",\"workPermitV2Id\":\"805\",\"orgId\":\"207\",\"viewLink\":\"https://sandbox.oqsha.com/#/work-permit-v2/view-work-permit/207/805?dlType=viewWorkPermitV2\",\"workPermitLink\":\"https://sandbox.oqsha.com/#/work-permit-v2/view-work-permit/207/805?dlType=viewWorkPermitV2\",\"emailFooter\":\"OQSHA Team\"}},\"ActorContext\":{\"requested_by\":[267],\"ptw_issuer\":[267],\"ptw_approver\":[267],\"ptw_authorizer\":[267],\"ext_issuer\":[267]},\"Metadata\":null}"}


Message: Sent message ID 1846cf45072c3000 to DLQ


Message: Started processing notification for message ID 1846d07f5fec3000


Message: Looking up the notification handler for message ID 1846d07f5fec3000


Message: Event handling in process for message ID 1846d07f5fec3000


Message: Sending message ID 1846d07f5fec3000 to DLQ


Message: Dead letter envelope for DLQ message: {"SourceTopic":"stg.notification.orchestrator","SourceChannel":"notification-orchestrator","FailedAtUtc":"2026-09-07T08:35:09.7007916Z","Attempts":1,"ErrorType":"OQSHA.Notification.Orchestrator.Exceptions.PermanentOrchestratorException","ErrorMessage":"Work Permit V2 ID 805 not found for message ID 1846d07f5fec3000","StackTrace":"   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.FetchWorkPermitAsync(String messageId, Int32 orgId, Int32 workPermitId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 225\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.HandleAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 54\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.ProcessEventAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 46\r\n   at OQSHA.Notification.Orchestrator.Routing.EventRouter.ExecuteAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Routing\\EventRouter.cs:line 38\r\n   at OQSHA.Notification.Orchestrator.Worker.OrchestratorMessageHandler.HandleMessage(IMessage message) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Worker\\OrchestratorMessageHandler.cs:line 44","OriginalBody":"{\"TemplateId\":17,\"EntityType\":\"work_permit_v2\",\"EventType\":null,\"NotifyRoleId\":null,\"NotifyUserId\":267,\"NotifyDynamicActor\":null,\"EntityContext\":{\"Parameters\":{\"workPermitId\":\"805\",\"workPermitV2Id\":\"805\",\"orgId\":\"207\",\"viewLink\":\"https://sandbox.oqsha.com/#/work-permit-v2/view-work-permit/207/805?dlType=viewWorkPermitV2\",\"workPermitLink\":\"https://sandbox.oqsha.com/#/work-permit-v2/view-work-permit/207/805?dlType=viewWorkPermitV2\",\"emailFooter\":\"OQSHA Team\"}},\"ActorContext\":{\"requested_by\":[267],\"ptw_issuer\":[267],\"ptw_approver\":[267],\"ptw_authorizer\":[267],\"ext_issuer\":[267],\"ext_approver\":[267]},\"Metadata\":null}"}


Message: Sent message ID 1846d07f5fec3000 to DLQ


Message: Inside hosted service - for nsq


Message: Started the consumer service and handler for NSQ


Message: Started processing notification for message ID 1846e2d2706c3000


Message: Looking up the notification handler for message ID 1846e2d2706c3000


Message: Event handling in process for message ID 1846e2d2706c3000


Message: Sending message ID 1846e2d2706c3000 to DLQ


Message: Dead letter envelope for DLQ message: {"SourceTopic":"stg.notification.orchestrator","SourceChannel":"notification-orchestrator","FailedAtUtc":"2026-09-07T11:46:35.6996979Z","Attempts":1,"ErrorType":"OQSHA.Notification.Orchestrator.Exceptions.PermanentOrchestratorException","ErrorMessage":"Work Permit V2 ID 806 not found for message ID 1846e2d2706c3000","StackTrace":"   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.FetchWorkPermitAsync(String messageId, Int32 orgId, Int32 workPermitId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 225\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.HandleAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 54\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.ProcessEventAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 46\r\n   at OQSHA.Notification.Orchestrator.Routing.EventRouter.ExecuteAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Routing\\EventRouter.cs:line 38\r\n   at OQSHA.Notification.Orchestrator.Worker.OrchestratorMessageHandler.HandleMessage(IMessage message) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Worker\\OrchestratorMessageHandler.cs:line 44","OriginalBody":"{\"TemplateId\":17,\"EntityType\":\"work_permit_v2\",\"EventType\":null,\"NotifyRoleId\":null,\"NotifyUserId\":null,\"NotifyDynamicActor\":\"ptw_issuer\",\"EntityContext\":{\"Parameters\":{\"workPermitId\":\"806\",\"workPermitV2Id\":\"806\",\"orgId\":\"207\",\"viewLink\":\"https://sandbox.oqsha.com/#/work-permit-v2/view-work-permit/207/806?dlType=viewWorkPermitV2\",\"workPermitLink\":\"https://sandbox.oqsha.com/#/work-permit-v2/view-work-permit/207/806?dlType=viewWorkPermitV2\",\"emailFooter\":\"OQSHA Team\"}},\"ActorContext\":{\"requested_by\":[267],\"ptw_issuer\":[267],\"ptw_approver\":[267],\"ptw_authorizer\":[267],\"ext_issuer\":[267]},\"Metadata\":null}"}


Message: Sent message ID 1846e2d2706c3000 to DLQ


Message: Started processing notification for message ID 1846e3ce7f6c3000


Message: Looking up the notification handler for message ID 1846e3ce7f6c3000


Message: Event handling in process for message ID 1846e3ce7f6c3000


Message: Sending message ID 1846e3ce7f6c3000 to DLQ


Message: Dead letter envelope for DLQ message: {"SourceTopic":"stg.notification.orchestrator","SourceChannel":"notification-orchestrator","FailedAtUtc":"2026-09-07T11:46:35.7614092Z","Attempts":1,"ErrorType":"OQSHA.Notification.Orchestrator.Exceptions.PermanentOrchestratorException","ErrorMessage":"Work Permit V2 ID 807 not found for message ID 1846e3ce7f6c3000","StackTrace":"   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.FetchWorkPermitAsync(String messageId, Int32 orgId, Int32 workPermitId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 225\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.HandleAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 54\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.ProcessEventAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 46\r\n   at OQSHA.Notification.Orchestrator.Routing.EventRouter.ExecuteAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Routing\\EventRouter.cs:line 38\r\n   at OQSHA.Notification.Orchestrator.Worker.OrchestratorMessageHandler.HandleMessage(IMessage message) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Worker\\OrchestratorMessageHandler.cs:line 44","OriginalBody":"{\"TemplateId\":17,\"EntityType\":\"work_permit_v2\",\"EventType\":null,\"NotifyRoleId\":null,\"NotifyUserId\":null,\"NotifyDynamicActor\":\"ptw_issuer\",\"EntityContext\":{\"Parameters\":{\"workPermitId\":\"807\",\"workPermitV2Id\":\"807\",\"orgId\":\"207\",\"viewLink\":\"https://sandbox.oqsha.com/#/work-permit-v2/view-work-permit/207/807?dlType=viewWorkPermitV2\",\"workPermitLink\":\"https://sandbox.oqsha.com/#/work-permit-v2/view-work-permit/207/807?dlType=viewWorkPermitV2\",\"emailFooter\":\"OQSHA Team\"}},\"ActorContext\":{\"requested_by\":[267],\"ptw_issuer\":[267],\"ptw_approver\":[267],\"ptw_authorizer\":[267],\"ext_issuer\":[267]},\"Metadata\":null}"}


Message: Sent message ID 1846e3ce7f6c3000 to DLQ


Message: Started processing notification for message ID 1846e3fd022c3000


Message: Looking up the notification handler for message ID 1846e3fd022c3000


Message: Event handling in process for message ID 1846e3fd022c3000


Message: Sending message ID 1846e3fd022c3000 to DLQ


Message: Dead letter envelope for DLQ message: {"SourceTopic":"stg.notification.orchestrator","SourceChannel":"notification-orchestrator","FailedAtUtc":"2026-09-07T11:46:35.8139581Z","Attempts":1,"ErrorType":"OQSHA.Notification.Orchestrator.Exceptions.PermanentOrchestratorException","ErrorMessage":"Work Permit V2 ID 807 not found for message ID 1846e3fd022c3000","StackTrace":"   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.FetchWorkPermitAsync(String messageId, Int32 orgId, Int32 workPermitId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 225\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.HandleAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 54\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.WorkPermitV2NotificationHandler.ProcessEventAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\WorkPermitV2NotificationHandler.cs:line 46\r\n   at OQSHA.Notification.Orchestrator.Routing.EventRouter.ExecuteAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Routing\\EventRouter.cs:line 38\r\n   at OQSHA.Notification.Orchestrator.Worker.OrchestratorMessageHandler.HandleMessage(IMessage message) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Worker\\OrchestratorMessageHandler.cs:line 44","OriginalBody":"{\"TemplateId\":17,\"EntityType\":\"work_permit_v2\",\"EventType\":null,\"NotifyRoleId\":null,\"NotifyUserId\":267,\"NotifyDynamicActor\":null,\"EntityContext\":{\"Parameters\":{\"workPermitId\":\"807\",\"workPermitV2Id\":\"807\",\"orgId\":\"207\",\"viewLink\":\"https://sandbox.oqsha.com/#/work-permit-v2/view-work-permit/207/807?dlType=viewWorkPermitV2\",\"workPermitLink\":\"https://sandbox.oqsha.com/#/work-permit-v2/view-work-permit/207/807?dlType=viewWorkPermitV2\",\"emailFooter\":\"OQSHA Team\"}},\"ActorContext\":{\"requested_by\":[267],\"ptw_issuer\":[267],\"ptw_approver\":[267],\"ptw_authorizer\":[267],\"ext_issuer\":[267],\"ext_approver\":[267]},\"Metadata\":null}"}


Message: Sent message ID 1846e3fd022c3000 to DLQ


Message: Notification event with message ID 1846f2ff9d2c3000 received: {"TemplateId":45,"EntityType":"visitor_management","EventType":null,"NotifyRoleId":355,"NotifyUserId":null,"NotifyDynamicActor":null,"EntityContext":{"Parameters":{"visitorManagementId":"21","orgId":"251"}},"ActorContext":{"Employee":[5698],"createdby":[267]},"Metadata":null}


Message: Started processing notification for message ID 1846f2ff9d2c3000


Message: Looking up the notification handler for message ID 1846f2ff9d2c3000


Message: Event handling in process for message ID 1846f2ff9d2c3000


Message: Sending message ID 1846f2ff9d2c3000 to DLQ


Message: Dead letter envelope for DLQ message: {"SourceTopic":"stg.notification.orchestrator","SourceChannel":"notification-orchestrator","FailedAtUtc":"2026-09-07T11:46:35.8406923Z","Attempts":1,"ErrorType":"OQSHA.Notification.Orchestrator.Exceptions.PermanentOrchestratorException","ErrorMessage":"Visitor Management ID 21 not found for message ID 1846f2ff9d2c3000","StackTrace":"   at OQSHA.Notification.Orchestrator.NotificationHandlers.VisitorManagementNotificationHandler.FetchVisitorManagementAsync(String messageId, Int32 orgId, Int32 visitorManagementId) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\VisitorManagementNotificationHandler.cs:line 220\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.VisitorManagementNotificationHandler.HandleAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\VisitorManagementNotificationHandler.cs:line 52\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.VisitorManagementNotificationHandler.ProcessEventAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\VisitorManagementNotificationHandler.cs:line 44\r\n   at OQSHA.Notification.Orchestrator.Routing.EventRouter.ExecuteAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Routing\\EventRouter.cs:line 38\r\n   at OQSHA.Notification.Orchestrator.Worker.OrchestratorMessageHandler.HandleMessage(IMessage message) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Worker\\OrchestratorMessageHandler.cs:line 44","OriginalBody":"{\"TemplateId\":45,\"EntityType\":\"visitor_management\",\"EventType\":null,\"NotifyRoleId\":355,\"NotifyUserId\":null,\"NotifyDynamicActor\":null,\"EntityContext\":{\"Parameters\":{\"visitorManagementId\":\"21\",\"orgId\":\"251\"}},\"ActorContext\":{\"Employee\":[5698],\"createdby\":[267]},\"Metadata\":null}"}


Message: Sent message ID 1846f2ff9d2c3000 to DLQ


Message: Notification event with message ID 184703cd6aec3000 received: {"TemplateId":49,"EntityType":"safety_alerts","EventType":null,"NotifyRoleId":null,"NotifyUserId":null,"NotifyDynamicActor":null,"EntityContext":{"Parameters":{"alertId":"2015","orgId":"264","alertLink":"https://sandbox.oqsha.com/#/safety-alerts-v2/edit-safety-alert-v2/2015","EmailFooter":"OQSHA Team","UserName":"Giselle Angle","description":"desc"}},"ActorContext":null,"Metadata":null}


Message: Started processing notification for message ID 184703cd6aec3000


Message: Looking up the notification handler for message ID 184703cd6aec3000


Message: Event handling in process for message ID 184703cd6aec3000


Message: Sending message ID 184703cd6aec3000 to DLQ


Message: Dead letter envelope for DLQ message: {"SourceTopic":"stg.notification.orchestrator","SourceChannel":"notification-orchestrator","FailedAtUtc":"2026-09-07T12:30:12.2787398Z","Attempts":1,"ErrorType":"OQSHA.Notification.Orchestrator.Exceptions.PermanentOrchestratorException","ErrorMessage":"No template found for template ID 49 of message ID 184703cd6aec3000","StackTrace":"   at OQSHA.Notification.Orchestrator.NotificationHandlers.SafetyAlertsNotificationHandler.HandleTemplateBasedAlertNotificationAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\SafetyAlertsNotificationHandler.cs:line 64\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.SafetyAlertsNotificationHandler.ProcessEventAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\SafetyAlertsNotificationHandler.cs:line 45\r\n   at OQSHA.Notification.Orchestrator.Routing.EventRouter.ExecuteAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Routing\\EventRouter.cs:line 38\r\n   at OQSHA.Notification.Orchestrator.Worker.OrchestratorMessageHandler.HandleMessage(IMessage message) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Worker\\OrchestratorMessageHandler.cs:line 44","OriginalBody":"{\"TemplateId\":49,\"EntityType\":\"safety_alerts\",\"EventType\":null,\"NotifyRoleId\":null,\"NotifyUserId\":null,\"NotifyDynamicActor\":null,\"EntityContext\":{\"Parameters\":{\"alertId\":\"2015\",\"orgId\":\"264\",\"alertLink\":\"https://sandbox.oqsha.com/#/safety-alerts-v2/edit-safety-alert-v2/2015\",\"EmailFooter\":\"OQSHA Team\",\"UserName\":\"Giselle Angle\",\"description\":\"desc\"}},\"ActorContext\":null,\"Metadata\":null}"}


Message: Sent message ID 184703cd6aec3000 to DLQ


Message: Notification event with message ID 184703cd6b6c3000 received: {"TemplateId":50,"EntityType":"safety_alerts","EventType":null,"NotifyRoleId":null,"NotifyUserId":null,"NotifyDynamicActor":null,"EntityContext":{"Parameters":{"alertId":"2015","orgId":"264","alertLink":"https://sandbox.oqsha.com/#/safety-alerts-v2/edit-safety-alert-v2/2015","EmailFooter":"OQSHA Team","UserName":"Giselle Angle","description":"desc"}},"ActorContext":null,"Metadata":null}


Message: Started processing notification for message ID 184703cd6b6c3000


Message: Looking up the notification handler for message ID 184703cd6b6c3000


Message: Event handling in process for message ID 184703cd6b6c3000


Message: Sending message ID 184703cd6b6c3000 to DLQ


Message: Dead letter envelope for DLQ message: {"SourceTopic":"stg.notification.orchestrator","SourceChannel":"notification-orchestrator","FailedAtUtc":"2026-09-07T12:30:12.3155595Z","Attempts":1,"ErrorType":"OQSHA.Notification.Orchestrator.Exceptions.PermanentOrchestratorException","ErrorMessage":"No template found for template ID 50 of message ID 184703cd6b6c3000","StackTrace":"   at OQSHA.Notification.Orchestrator.NotificationHandlers.SafetyAlertsNotificationHandler.HandleTemplateBasedAlertNotificationAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\SafetyAlertsNotificationHandler.cs:line 64\r\n   at OQSHA.Notification.Orchestrator.NotificationHandlers.SafetyAlertsNotificationHandler.ProcessEventAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\NotificationHandlers\\SafetyAlertsNotificationHandler.cs:line 45\r\n   at OQSHA.Notification.Orchestrator.Routing.EventRouter.ExecuteAsync(String messageId, NotificationEventDto request) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Routing\\EventRouter.cs:line 38\r\n   at OQSHA.Notification.Orchestrator.Worker.OrchestratorMessageHandler.HandleMessage(IMessage message) in C:\\GitLab-Runner\\builds\\27n6lYj0J\\0\\incident-reporter\\incident-reporter-api\\IncidentReporter\\OQSHA.Notification.Orchestrator\\Worker\\OrchestratorMessageHandler.cs:line 44","OriginalBody":"{\"TemplateId\":50,\"EntityType\":\"safety_alerts\",\"EventType\":null,\"NotifyRoleId\":null,\"NotifyUserId\":null,\"NotifyDynamicActor\":null,\"EntityContext\":{\"Parameters\":{\"alertId\":\"2015\",\"orgId\":\"264\",\"alertLink\":\"https://sandbox.oqsha.com/#/safety-alerts-v2/edit-safety-alert-v2/2015\",\"EmailFooter\":\"OQSHA Team\",\"UserName\":\"Giselle Angle\",\"description\":\"desc\"}},\"ActorContext\":null,\"Metadata\":null}"}


Message: Sent message ID 184703cd6b6c3000 to DLQ


Message: Inside hosted service - for nsq


Message: Started the consumer service and handler for NSQ