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. ##


Processing command line args--MIDNIGHT_EXECUTE


Invalid command line argument: --MIDNIGHT_EXECUTE


Processing command line argsMIDNIGHT_EXECUTE


INSPECTION_NEXT_DUE_DATE_NOTIFICATION - Fetching inspection reminders for current timestamp...


INSPECTION_NEXT_DUE_DATE_NOTIFICATION - Fetched inspection reminders for 14 users.


INSPECTION_NEXT_DUE_DATE_NOTIFICATION - Notification successfully pushed to NSQ.


## 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 ##


## Creating new batches according to the sessions ##


Pushing Batch Participant Notification to NSQ


NotificationObject: {"EventName":"NEW_BATCH_CREATION", "EventArgs":[{"Key":"AllBatchFacultyNotifications", "Value":"[{\"FacultyUserId\":881,\"FacultyUserName\":\"Sacherby Markham\",\"CourseId\":158,\"CourseName\":\"ttt\",\"SiteName\":\"Tomahawk\",\"OrganisationId\":194,\"OrganisationName\":\"Opera Limited American\",\"StartDate\":\"25-Jul-2025 01:43 PM\",\"CountryCode\":\"+91\",\"WhatsappNumber\":\"2000007341\",\"BatchId\":null,\"BatchName\":\"TEE_LAL_Sacherby Markham_25-07-2025_01\"},{\"FacultyUserId\":881,\"FacultyUserName\":\"Sacherby Markham\",\"CourseId\":158,\"CourseName\":\"ttt\",\"SiteName\":\"Tomahawk\",\"OrganisationId\":194,\"OrganisationName\":\"Opera Limited American\",\"StartDate\":\"25-Jul-2025 01:43 PM\",\"CountryCode\":\"+91\",\"WhatsappNumber\":\"2000007341\",\"BatchId\":null,\"BatchName\":\"TEE_LAL_Sacherby Markham_25-07-2025_02\"}]"}]}


## Ended 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 45694 based on inspection type ID 609.


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45703 based on template inspection ID 44738.


Pushing Inspection auto creation event to NSQ


NotificationObject: {"EventName":"NOTIFICATION_FOR_INSPECTION_ASSIGNEES", "EventArgs":[{"Key":"UserIds", "Value":"[11165,11166]"},{"Key":"InspectionUID", "Value":"I\/KURA\/BHA\/WII\/26\/00001"},{"Key":"Name", "Value":"EOT CRANE INSPECTION and Lifting Appliances   "},{"Key":"Type", "Value":"Weekly Inspections"},{"Key":"Site", "Value":"Hickory Grove"},{"Key":"Status", "Value":"Planned"},{"Key":"CreatedBy", "Value":"System User"},{"Key":"CreatedOn", "Value":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45703"},{"Key":"OrganisationId", "Value":258}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45704 based on template inspection ID 45634.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45704"},{"Key":"OrganisationId", "Value":258}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45705 based on template inspection ID 45635.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45705"},{"Key":"OrganisationId", "Value":258}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45706 based on template inspection ID 45636.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45706"},{"Key":"OrganisationId", "Value":258}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45707 based on template inspection ID 45637.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45707"},{"Key":"OrganisationId", "Value":258}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45708 based on template inspection ID 45638.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45708"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45709 based on template inspection ID 45639.


Pushing Inspection auto creation event to NSQ


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45709"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45710 based on template inspection ID 45640.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45710"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45711 based on template inspection ID 45641.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45711"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45712 based on template inspection ID 45642.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45712"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45713 based on template inspection ID 45643.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45713"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45714 based on template inspection ID 45644.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45714"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45715 based on template inspection ID 45645.


Pushing Inspection auto creation event to NSQ


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45715"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45716 based on template inspection ID 45646.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45716"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45717 based on template inspection ID 45647.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45717"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45718 based on template inspection ID 45648.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45718"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45719 based on template inspection ID 45649.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45719"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45720 based on template inspection ID 45650.


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45720"},{"Key":"OrganisationId", "Value":259}]}


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


AUTO_INSPECTION_CREATION - Successfully created new inspection with ID 45721 based on template inspection ID 45651.


Pushing Inspection auto creation event to NSQ


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":"21-Aug-2026 04:59:47 PM"},{"Key":"InspectionId", "Value":"45721"},{"Key":"OrganisationId", "Value":259}]}


Starting AssetCertificationReminderExecuteAsync


Finished AssetCertificationReminderExecuteAsync


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. ##


Processing command line argsBATCH_ATTENDANCE_CRON


Starting Batch Attendance OCR background job


[OCR-BG] Computed absolute path: https://files.sandbox.oqsha.com/attachments/264/batches/imagee5b1bb0b_fcd5a540-bd0a-4527-aa06-72c98bd80b43.png


[OCR-BG] Downloading remote file for OCR: https://files.sandbox.oqsha.com/attachments/264/batches/imagee5b1bb0b_fcd5a540-bd0a-4527-aa06-72c98bd80b43.png


[OCR-BG] Downloaded 953593 bytes successfully.


[OCR-BG] Resolved Template Name: 'ttk_training_attendance_template'


[OCR-BG] Preparing to POST to Document Extractor API. URL: https://docex-api.oqsha.in/ocr/?template_name=ttk_training_attendance_template


[OCR-BG] Executing POST request...


[OCR-BG] POST completed. Status Code: 200 (OK)


[OCR-BG] Successfully received JSON response. Parsing now...


[OCR-BG] Parsed OCR response successfully. Returning success.


No participants extracted for BatchId=2913


Batch Attendance OCR background job completed


Process started.


Processing command line argsMIDNIGHT_EXECUTE


INSPECTION_NEXT_DUE_DATE_NOTIFICATION - Fetching inspection reminders for current timestamp...


INSPECTION_NEXT_DUE_DATE_NOTIFICATION - No inspection reminders found for the current Date.


## Started Batch Scheduler Execution ##


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


## No CourseSchedule found, ending Batch Scheduler 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...


Starting AssetCertificationReminderExecuteAsync


Found 1 valid orgs: 269


Fetched 1 asset checks from DB.


Finished AssetCertificationReminderExecuteAsync


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. ##


## Started Batch Scheduler Execution ##


Asset Asset_certification: checking certificate due date '2026-09-21' against target '2026-09-21'


Pushing Asset Certification Reminder Notification to NSQ for OrgId: 269