Level: Information

Message: Inside hosted service - for nsq


Message: Started the consumer service and handler for NSQ


Message: Started processing notification for message ID 1823a555ca6c3000


Message: Looking up the notification handler for message ID 1823a555ca6c3000


Message: Event handling in process for message ID 1823a555ca6c3000


Message: Sending message ID 1823a555ca6c3000 to DLQ


Message: Dead letter envelope for DLQ message: {"SourceTopic":"notification.orchestrator","SourceChannel":"notification-orchestrator","FailedAtUtc":"2026-08-09T17:09:00.0798851Z","Attempts":1,"ErrorType":"OQSHA.Notification.Orchestrator.Exceptions.PermanentOrchestratorException","ErrorMessage":"Work Permit V2 ID 500 not found for message ID 1823a555ca6c3000","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\":18,\"EntityType\":\"work_permit_v2\",\"EventType\":null,\"NotifyRoleId\":null,\"NotifyUserId\":null,\"NotifyDynamicActor\":\"AreaOwner2\",\"EntityContext\":{\"Parameters\":{\"workPermitId\":\"500\",\"workPermitV2Id\":\"500\",\"orgId\":\"267\",\"viewLink\":\"http://localhost:4200/#/work-permit-v2/view-work-permit/267/500?dlType=viewWorkPermitV2\",\"workPermitLink\":\"http://localhost:4200/#/work-permit-v2/view-work-permit/267/500?dlType=viewWorkPermitV2\",\"emailFooter\":\"OQSHA Team\"}},\"ActorContext\":{\"AreaOwner2\":[267]},\"Metadata\":null}"}


Message: Sent message ID 1823a555ca6c3000 to DLQ


Message: Started processing notification for message ID 1823a555caec3000


Message: Looking up the notification handler for message ID 1823a555caec3000


Message: Event handling in process for message ID 1823a555caec3000


Message: Sending message ID 1823a555caec3000 to DLQ


Message: Dead letter envelope for DLQ message: {"SourceTopic":"notification.orchestrator","SourceChannel":"notification-orchestrator","FailedAtUtc":"2026-08-09T17:09:00.139399Z","Attempts":1,"ErrorType":"OQSHA.Notification.Orchestrator.Exceptions.PermanentOrchestratorException","ErrorMessage":"Work Permit V2 ID 500 not found for message ID 1823a555caec3000","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\":19,\"EntityType\":\"work_permit_v2\",\"EventType\":null,\"NotifyRoleId\":null,\"NotifyUserId\":null,\"NotifyDynamicActor\":\"AreaOwner2\",\"EntityContext\":{\"Parameters\":{\"workPermitId\":\"500\",\"workPermitV2Id\":\"500\",\"orgId\":\"267\",\"viewLink\":\"http://localhost:4200/#/work-permit-v2/view-work-permit/267/500?dlType=viewWorkPermitV2\",\"workPermitLink\":\"http://localhost:4200/#/work-permit-v2/view-work-permit/267/500?dlType=viewWorkPermitV2\",\"emailFooter\":\"OQSHA Team\"}},\"ActorContext\":{\"AreaOwner2\":[267]},\"Metadata\":null}"}


Message: Sent message ID 1823a555caec3000 to DLQ