{"Timestamp":"2026-08-09T00:24:11.0927783+00:00","Level":"Information","Data":{"EventId":3091016791},"Message":"Inside hosted service - for nsq"}

{"Timestamp":"2026-08-09T00:24:11.1925555+00:00","Level":"Information","Data":{"EventId":3138514657},"Message":"Started the consumer service and handler for NSQ"}

{"Timestamp":"2026-08-09T17:08:59.2473771+00:00","Level":"Information","Data":{"EventId":3753127100},"Message":"Notification event with message ID 1823a555ca6c3000 received: {\"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}"}

{"Timestamp":"2026-08-09T17:08:59.3947586+00:00","Level":"Information","Data":{"EventId":2363066783},"Message":"Started processing notification for message ID 1823a555ca6c3000"}

{"Timestamp":"2026-08-09T17:08:59.3948450+00:00","Level":"Information","Data":{"EventId":297385431},"Message":"Looking up the notification handler for message ID 1823a555ca6c3000"}

{"Timestamp":"2026-08-09T17:08:59.3952777+00:00","Level":"Information","Data":{"EventId":227352787},"Message":"Event handling in process for message ID 1823a555ca6c3000"}

{"Timestamp":"2026-08-09T17:09:00.0797119+00:00","Level":"Information","Data":{"EventId":135894302},"Message":"Sending message ID 1823a555ca6c3000 to DLQ"}

{"Timestamp":"2026-08-09T17:09:00.1125700+00:00","Level":"Information","Data":{"EventId":4114475986},"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}\"}"}

{"Timestamp":"2026-08-09T17:09:00.1174271+00:00","Level":"Information","Data":{"EventId":1900802559},"Message":"Sent message ID 1823a555ca6c3000 to DLQ"}

{"Timestamp":"2026-08-09T17:09:00.1181898+00:00","Level":"Information","Data":{"EventId":4050715192},"Message":"Notification event with message ID 1823a555caec3000 received: {\"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}"}

{"Timestamp":"2026-08-09T17:09:00.1236950+00:00","Level":"Information","Data":{"EventId":3559613383},"Message":"Started processing notification for message ID 1823a555caec3000"}

{"Timestamp":"2026-08-09T17:09:00.1237649+00:00","Level":"Information","Data":{"EventId":2958516051},"Message":"Looking up the notification handler for message ID 1823a555caec3000"}

{"Timestamp":"2026-08-09T17:09:00.1238317+00:00","Level":"Information","Data":{"EventId":1783515095},"Message":"Event handling in process for message ID 1823a555caec3000"}

{"Timestamp":"2026-08-09T17:09:00.1392924+00:00","Level":"Information","Data":{"EventId":2353527781},"Message":"Sending message ID 1823a555caec3000 to DLQ"}

{"Timestamp":"2026-08-09T17:09:00.1396283+00:00","Level":"Information","Data":{"EventId":172624626},"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}\"}"}

{"Timestamp":"2026-08-09T17:09:00.1405655+00:00","Level":"Information","Data":{"EventId":835690155},"Message":"Sent message ID 1823a555caec3000 to DLQ"}

