Process started.


Processing command line argsWORK_PERMIT_V2_LIFECYCLE_AUTO_CLOSE


## Started Work Permit V2 lifecycle auto close cron execution ##


## No lifecycle configs found with Work Permit V2 auto close enabled. ##


## Lifecycle auto closing Work Permit V2 Ids for Organisation ID 267: [386,394] ##


## Number of rows affected for Work Permit V2 lifecycle auto close execution: 2 ##


## Ended Work Permit V2 lifecycle auto close execution ##


## No Work Permit V2 records found for lifecycle auto close execution ##


Processing command line argsMIDNIGHT_EXECUTE


INSPECTION_NEXT_DUE_DATE_NOTIFICATION - Fetching inspection reminders for current timestamp...


Processing command line argsBATCH_ATTENDANCE_CRON


Starting Batch Attendance OCR background job


No pending OCR jobs found


## Started Batch Scheduler Execution ##


## Fetching all the asset maintenance logs that are scheduled on the defined date fall on the current hour ##


## Setting up the next course schedule ##


## Inserting next course schedule ##


Could not process batch schedule execution


## Started User Attendance Stats Execution ##


## Retrieved 0 distinct User IDs ##


## Found 0 unique users ##


## Completed User Attendance Stats Execution ##


NEXT_INSPECTION_CREATION_NOTIFICATION - Fetching inspection reminders for current timestamp...


AUTO_INSPECTION_CREATION - Fetching inspection creation for current timestamp...


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34802 based on inspection type ID 610.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34809 based on template inspection ID 34791.


Pushing Inspection auto creation event to NSQ


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[11167]"},{"Key":"InspectionUID", "Value":"I\/KURA\/TGH\/DII\/26\/00001"},{"Key":"Name", "Value":"Plant Daily Inspection"},{"Key":"Type", "Value":"Daily Inspections"},{"Key":"Site", "Value":"Old Orchard"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34809"},{"Key":"OrganisationId", "Value":258}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34803 based on inspection type ID 610.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34810 based on template inspection ID 34792.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[11165]"},{"Key":"InspectionUID", "Value":"I\/KURA\/BHA\/DII\/26\/00001"},{"Key":"Name", "Value":"Plant Daily Inspection"},{"Key":"Type", "Value":"Daily Inspections"},{"Key":"Site", "Value":"Hickory Grove"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34810"},{"Key":"OrganisationId", "Value":258}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34804 based on inspection type ID 610.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34811 based on template inspection ID 34793.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[11139]"},{"Key":"InspectionUID", "Value":"I\/KURA\/FD2\/DII\/26\/00001"},{"Key":"Name", "Value":"Plant Daily Inspection"},{"Key":"Type", "Value":"Daily Inspections"},{"Key":"Site", "Value":"Carson Valley"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34811"},{"Key":"OrganisationId", "Value":258}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34805 based on inspection type ID 610.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34812 based on template inspection ID 34794.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[11167]"},{"Key":"InspectionUID", "Value":"I\/KURA\/FD1\/DII\/26\/00001"},{"Key":"Name", "Value":"Sand plant"},{"Key":"Type", "Value":"Daily Inspections"},{"Key":"Site", "Value":"Morgan's Point Resort"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34812"},{"Key":"OrganisationId", "Value":258}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34806 based on inspection type ID 616.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34813 based on template inspection ID 34795.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[11420]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/F-C\/26\/00001"},{"Key":"Name", "Value":"237"},{"Key":"Type", "Value":"Filler - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34813"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34807 based on inspection type ID 614.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34814 based on template inspection ID 34796.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[11420]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/L-C\/26\/00001"},{"Key":"Name", "Value":"241"},{"Key":"Type", "Value":"Labeller - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34814"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34808 based on inspection type ID 616.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34815 based on template inspection ID 34797.


Pushing Inspection auto creation event to NSQ


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[11420]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/F-C\/26\/00002"},{"Key":"Name", "Value":"237"},{"Key":"Type", "Value":"Filler - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34815"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34809 based on inspection type ID 614.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34816 based on template inspection ID 34798.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[13718]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/L-C\/26\/00002"},{"Key":"Name", "Value":"241"},{"Key":"Type", "Value":"Labeller - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34816"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34810 based on inspection type ID 616.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34817 based on template inspection ID 34799.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[13718]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/F-C\/26\/00003"},{"Key":"Name", "Value":"237"},{"Key":"Type", "Value":"Filler - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34817"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34811 based on inspection type ID 614.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34818 based on template inspection ID 34800.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[13718,13719]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/L-C\/26\/00003"},{"Key":"Name", "Value":"241"},{"Key":"Type", "Value":"Labeller - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34818"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34812 based on inspection type ID 614.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34819 based on template inspection ID 34801.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[881]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/L-C\/26\/00004"},{"Key":"Name", "Value":"241"},{"Key":"Type", "Value":"Labeller - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34819"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34813 based on inspection type ID 616.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34820 based on template inspection ID 34802.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[678]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/F-C\/26\/00004"},{"Key":"Name", "Value":"Filler"},{"Key":"Type", "Value":"Filler - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34820"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34814 based on inspection type ID 614.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34821 based on template inspection ID 34803.


Pushing Inspection auto creation event to NSQ


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[881]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/L-C\/26\/00005"},{"Key":"Name", "Value":"241"},{"Key":"Type", "Value":"Labeller - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34821"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34815 based on inspection type ID 616.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34822 based on template inspection ID 34804.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[698]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/F-C\/26\/00005"},{"Key":"Name", "Value":"Filler"},{"Key":"Type", "Value":"Filler - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34822"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34816 based on inspection type ID 616.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34823 based on template inspection ID 34805.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[678]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/F-C\/26\/00006"},{"Key":"Name", "Value":"Filler"},{"Key":"Type", "Value":"Filler - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34823"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34817 based on inspection type ID 616.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34824 based on template inspection ID 34806.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[881]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/F-C\/26\/00007"},{"Key":"Name", "Value":"237"},{"Key":"Type", "Value":"Filler - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34824"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34818 based on inspection type ID 614.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34825 based on template inspection ID 34807.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[881]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/L-C\/26\/00006"},{"Key":"Name", "Value":"Labeller"},{"Key":"Type", "Value":"Labeller - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34825"},{"Key":"OrganisationId", "Value":259}]}


AUTO_INSPECTION_CREATION - New Inspection check created with ID 34819 based on inspection type ID 616.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 34826 based on template inspection ID 34808.


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[678]"},{"Key":"InspectionUID", "Value":"I\/GRRR\/NAS\/F-C\/26\/00008"},{"Key":"Name", "Value":"Filler"},{"Key":"Type", "Value":"Filler - CIL"},{"Key":"Site", "Value":"Parkerfield"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"11-Jul-2026 05:30:57 PM"},{"Key":"InspectionId", "Value":"34826"},{"Key":"OrganisationId", "Value":259}]}


Process started.


Processing command line argsWORK_PERMIT_V2_LIFECYCLE_AUTO_CLOSE


## Started Work Permit V2 lifecycle auto close cron execution ##


## No Work Permit V2 records found for lifecycle auto close execution ##


## Ended Work Permit V2 lifecycle auto close execution ##


Could not process Work Permit V2 lifecycle auto close execution


MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to any of the specified MySQL hosts. ---> System.Net.Sockets.SocketException (0x80004005): No connection could be made because the target machine actively refused it 10.0.1.10:1522
   at System.Net.Sockets.Socket.InternalEndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.Socket.EndConnect(IAsyncResult asyncResult)
   at System.Net.Sockets.TcpClient.EndConnect(IAsyncResult asyncResult)
   at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)
   at MySql.Data.MySqlClient.NativeDriver.<>c.<Open>b__40_0(Exception ex)
   at System.AggregateException.Handle(Func`2 predicate)
   at MySql.Data.MySqlClient.NativeDriver.Open()
   at MySql.Data.MySqlClient.Driver.Open()
   at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
   at MySql.Data.MySqlClient.MySqlPool.CreateNewPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.GetPooledConnection()
   at MySql.Data.MySqlClient.MySqlPool.TryToGetDriver()
   at MySql.Data.MySqlClient.MySqlPool.GetConnection()
   at MySql.Data.MySqlClient.MySqlConnection.Open()
   at IncidentReporter.DAL.Repositories.BaseRepo.OpenConnection() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\BaseRepo.cs:line 26
   at IncidentReporter.DAL.Repositories.OsmoguardRepo.GetAcmModuleIdByModuleName(String moduleName) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OsmoguardRepo.cs:line 740
   at IncidentReporter.RenewalReminder.Helpers.WorkPermitV2LifecycleAutoCloseHelper.WorkPermitV2LifecycleAutoCloseExecution() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.RenewalReminder\Helpers\WorkPermitV2LifecycleAutoCloseHelper.cs:line 36


MySql.Data.MySqlClient.MySqlException (0x80004005): Table 'qa_stg_oqsha_4.acm_modules' doesn't exist
   at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
   at MySql.Data.MySqlClient.NativeDriver.GetResult(Int32& affectedRow, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.GetResult(Int32 statementId, Int32& affectedRows, Int64& insertedId)
   at MySql.Data.MySqlClient.Driver.NextResult(Int32 statementId, Boolean force)
   at MySql.Data.MySqlClient.MySqlDataReader.NextResult()
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteReader(CommandBehavior behavior)
   at MySql.Data.MySqlClient.MySqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
   at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
   at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior)
   at Dapper.SqlMapper.<QueryImpl>d__138`1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType)
   at IncidentReporter.DAL.Repositories.OsmoguardRepo.GetAcmModuleIdByModuleName(String moduleName) in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.DAL\Repositories\OsmoguardRepo.cs:line 746
   at IncidentReporter.RenewalReminder.Helpers.WorkPermitV2LifecycleAutoCloseHelper.WorkPermitV2LifecycleAutoCloseExecution() in C:\GitLab-Runner\builds\27n6lYj0J\0\incident-reporter\incident-reporter-api\IncidentReporter\IncidentReporter.RenewalReminder\Helpers\WorkPermitV2LifecycleAutoCloseHelper.cs:line 36


## Lifecycle auto closing Work Permit V2 Ids for Organisation ID 267: [386,394] ##


## Number of rows affected for Work Permit V2 lifecycle auto close execution: 2 ##