2026-02-11 06:11:08,201 - 11799 - src.utils.log - INFO - ParallelProcessing=True GenerateWorkOrderHistoryId=11799 - __SPLIT__ 2026-02-11 06:11:08,504 - 11799 - src.utils.log - INFO - Parallel Work order generation algo started for GenerateWorkOrderHistoryId: 11799 - __SPLIT__ 2026-02-11 06:11:08,504 - 11799 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 06:11:08,505 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive' ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:10,655 - 11799 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 06:11:10,655 - 11799 - src.utils.log - INFO - ℹ️ Connection string not found, connecting to common DB - __SPLIT__ 2026-02-11 06:11:10,655 - 11799 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 11799;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:10,947 - 11799 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 06:11:10,947 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 11799), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 11799), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 11799 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:11,279 - 11799 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 06:11:11,279 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 11799;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:11,574 - 11799 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 06:11:11,577 - 11799 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-11 06:11:11,577 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:11,871 - 11799 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-02-11 06:11:11,871 - 11799 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-11 06:11:11,874 - 11799 - src.utils.log - INFO - πŸ“Š Found 1 setups to process across 1 routes - __SPLIT__ 2026-02-11 06:11:11,874 - 11799 - src.utils.log - INFO - πŸš€ Starting parallel processing with 8 workers - __SPLIT__ 2026-02-11 06:11:11,874 - 11799 - src.utils.log - INFO - Generating Sequentially as less then one route given - __SPLIT__ 2026-02-11 06:11:11,875 - 11799 - src.utils.log - INFO - πŸ”„ Processing route: 1 with 1 setups - __SPLIT__ 2026-02-11 06:11:11,875 - 11799 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-11 06:11:11,876 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23449;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:12,172 - 11799 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 06:11:12,172 - 11799 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-11 00:00:00' and ServiceDate <= '2026-04-30 00:00:00' and ServiceSetupId = 23449 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:12,485 - 11799 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 06:11:13,090 - 11799 - src.utils.log - INFO - Generating work orders for setup: 23449 - __SPLIT__ 2026-02-11 06:11:13,119 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1425;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:13,408 - 11799 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 06:11:13,415 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1425;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:13,705 - 11799 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 06:11:13,744 - 11799 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-11 06:11:13,749 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:14,036 - 11799 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 06:11:14,041 - 11799 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-11 06:11:14,041 - 11799 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-11 06:11:14,041 - 11799 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23449 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:14,338 - 11799 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 06:11:14,338 - 11799 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23449 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:14,641 - 11799 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 06:11:14,641 - 11799 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23449 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:14,938 - 11799 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 06:11:14,938 - 11799 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23449 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:15,230 - 11799 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 06:11:15,231 - 11799 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23449 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:15,528 - 11799 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 06:11:15,528 - 11799 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23449 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:15,825 - 11799 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 06:11:15,825 - 11799 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23449 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:16,112 - 11799 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 06:11:16,112 - 11799 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23449 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:16,420 - 11799 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 06:11:16,420 - 11799 - src.utils.log - INFO - πŸ“ Inserting 4 work orders for route: 1 - __SPLIT__ 2026-02-11 06:11:16,420 - 11799 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:16,765 - 11799 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-11 06:11:18,048 - 11799 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-11 06:11:18,048 - 11799 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-06 12:28:19.020' and ServiceSetupId = 23449... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:18,357 - 11799 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-11 06:11:18,357 - 11799 - src.utils.log - INFO - βœ… Work order IDs inserted for route 1: 4 records - __SPLIT__ 2026-02-11 06:11:18,357 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23449;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:18,663 - 11799 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 06:11:18,664 - 11799 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-11 06:11:18,664 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23449... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:18,956 - 11799 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 06:11:18,956 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23449... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:19,249 - 11799 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 06:11:19,256 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23449... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:19,541 - 11799 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 06:11:19,542 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23449... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:19,839 - 11799 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 06:11:19,840 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23449... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:20,130 - 11799 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 06:11:20,131 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23449;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:20,418 - 11799 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 06:11:20,418 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23449;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:20,710 - 11799 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 06:11:20,711 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23449;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:21,234 - 11799 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 06:11:21,234 - 11799 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23449;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:21,526 - 11799 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 06:11:21,544 - 11799 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-11 06:11:21,545 - 11799 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:21,849 - 11799 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 06:11:21,849 - 11799 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-11 06:11:21,849 - 11799 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:22,156 - 11799 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-11 06:11:22,157 - 11799 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-11 06:11:22,157 - 11799 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:22,461 - 11799 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.SetupAutoGenerationSourceMapping - __SPLIT__ 2026-02-11 06:11:23,335 - 11799 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 1 batches - __SPLIT__ 2026-02-11 06:11:23,335 - 11799 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-11 06:11:23,335 - 11799 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:23,643 - 11799 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 0 batches - __SPLIT__ 2026-02-11 06:11:23,643 - 11799 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-11 06:11:23,644 - 11799 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:23,955 - 11799 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-11 06:11:23,956 - 11799 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 06:11:23,956 - 11799 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:24,264 - 11799 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 06:11:24,265 - 11799 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 06:11:24,265 - 11799 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:24,577 - 11799 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-02-11 06:11:25,618 - 11799 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-02-11 06:11:25,618 - 11799 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-11 06:11:25,618 - 11799 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:25,925 - 11799 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-11 06:11:26,958 - 11799 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-11 06:11:26,959 - 11799 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-11 06:11:26,959 - 11799 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:27,270 - 11799 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-11 06:11:28,289 - 11799 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-11 06:11:28,289 - 11799 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 06:11:28,289 - 11799 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:28,589 - 11799 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-11 06:11:29,604 - 11799 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-11 06:11:29,605 - 11799 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 06:11:29,605 - 11799 - src.utils.log - INFO - βœ… Temp tables populated for route: 1 - __SPLIT__ 2026-02-11 06:11:29,605 - 11799 - src.utils.log - INFO - βœ… Route 1 generation complete - __SPLIT__ 2026-02-11 06:11:29,605 - 11799 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 11799;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:29,897 - 11799 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 06:11:29,897 - 11799 - src.utils.log - INFO - ⏱️ Total time: 21.39s | Status: Completed - __SPLIT__ 2026-02-11 06:11:29,897 - 11799 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 11799;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:30,189 - 11799 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 06:11:30,190 - 11799 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-11 01:11:30.190' WHERE GenerateWorkOrderHistoryId = 11799;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 06:11:30,482 - 11799 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 06:11:30,482 - 11799 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 09:16:26,523 - 11800 - src.utils.log - INFO - ParallelProcessing=True GenerateWorkOrderHistoryId=11800 - __SPLIT__ 2026-02-11 09:16:26,524 - 11800 - src.utils.log - INFO - Parallel Work order generation algo started for GenerateWorkOrderHistoryId: 11800 - __SPLIT__ 2026-02-11 09:16:26,524 - 11800 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 09:16:26,524 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'Fortive' ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:28,647 - 11800 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:16:28,648 - 11800 - src.utils.log - INFO - ℹ️ Connection string not found, connecting to common DB - __SPLIT__ 2026-02-11 09:16:28,648 - 11800 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 11800;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:28,939 - 11800 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 09:16:28,939 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 11800), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 11800), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 11800 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:29,258 - 11800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:16:29,258 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 11800;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:29,552 - 11800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:16:29,554 - 11800 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-11 09:16:29,555 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 12805... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:29,848 - 11800 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-02-11 09:16:29,848 - 11800 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-11 09:16:29,852 - 11800 - src.utils.log - INFO - πŸ“Š Found 1 setups to process across 1 routes - __SPLIT__ 2026-02-11 09:16:29,852 - 11800 - src.utils.log - INFO - πŸš€ Starting parallel processing with 8 workers - __SPLIT__ 2026-02-11 09:16:29,852 - 11800 - src.utils.log - INFO - Generating Sequentially as less then one route given - __SPLIT__ 2026-02-11 09:16:29,852 - 11800 - src.utils.log - INFO - πŸ”„ Processing route: 1 with 1 setups - __SPLIT__ 2026-02-11 09:16:29,853 - 11800 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-11 09:16:29,853 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23454;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:30,149 - 11800 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:16:30,150 - 11800 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-11 00:00:00' and ServiceDate <= '2026-03-31 00:00:00' and ServiceSetupId = 23454 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:30,457 - 11800 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:16:31,082 - 11800 - src.utils.log - INFO - Generating work orders for setup: 23454 - __SPLIT__ 2026-02-11 09:16:31,105 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1415;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:31,395 - 11800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:16:31,403 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1355;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:31,688 - 11800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:16:31,724 - 11800 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-11 09:16:31,729 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=135 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:32,019 - 11800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:16:32,024 - 11800 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-11 09:16:32,024 - 11800 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-11 09:16:32,024 - 11800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23454 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:32,493 - 11800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:16:32,493 - 11800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23454 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:32,785 - 11800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:16:32,785 - 11800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23454 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:33,083 - 11800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:16:33,083 - 11800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23454 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:33,390 - 11800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:16:33,390 - 11800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23454 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:33,682 - 11800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:16:33,682 - 11800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23454 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:33,979 - 11800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:16:33,980 - 11800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23454 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:34,292 - 11800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:16:34,292 - 11800 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 23454 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:34,597 - 11800 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 09:16:34,597 - 11800 - src.utils.log - INFO - πŸ“ Inserting 3 work orders for route: 1 - __SPLIT__ 2026-02-11 09:16:34,598 - 11800 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:34,939 - 11800 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-11 09:16:36,293 - 11800 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-11 09:16:36,293 - 11800 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-06 12:28:19.020' and ServiceSetupId = 23454... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:36,586 - 11800 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-11 09:16:36,586 - 11800 - src.utils.log - INFO - βœ… Work order IDs inserted for route 1: 3 records - __SPLIT__ 2026-02-11 09:16:36,586 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 23454;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:36,880 - 11800 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:16:36,880 - 11800 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-11 09:16:36,880 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 23454... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:37,171 - 11800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:16:37,172 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 23454... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:37,463 - 11800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:16:37,471 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 23454... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:37,776 - 11800 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 09:16:37,777 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 23454... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:38,068 - 11800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:16:38,069 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 23454... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:38,375 - 11800 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:16:38,375 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 23454;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:38,667 - 11800 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:16:38,667 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 23454;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:38,959 - 11800 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 09:16:38,961 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 23454;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:39,695 - 11800 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:16:39,696 - 11800 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 23454;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:39,998 - 11800 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 09:16:40,018 - 11800 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-11 09:16:40,018 - 11800 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:40,325 - 11800 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 09:16:40,326 - 11800 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-11 09:16:40,326 - 11800 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:40,633 - 11800 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-11 09:16:40,633 - 11800 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-11 09:16:40,633 - 11800 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:40,943 - 11800 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.SetupAutoGenerationSourceMapping - __SPLIT__ 2026-02-11 09:16:41,847 - 11800 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 1 batches - __SPLIT__ 2026-02-11 09:16:41,847 - 11800 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-11 09:16:41,847 - 11800 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:42,146 - 11800 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 0 batches - __SPLIT__ 2026-02-11 09:16:42,146 - 11800 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-11 09:16:42,146 - 11800 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:42,452 - 11800 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-11 09:16:42,452 - 11800 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 09:16:42,452 - 11800 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:42,755 - 11800 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 09:16:42,755 - 11800 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 09:16:42,755 - 11800 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:43,069 - 11800 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-02-11 09:16:44,105 - 11800 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-02-11 09:16:44,105 - 11800 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-11 09:16:44,105 - 11800 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:44,418 - 11800 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-11 09:16:45,455 - 11800 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-11 09:16:45,456 - 11800 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-11 09:16:45,456 - 11800 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:45,766 - 11800 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-11 09:16:46,801 - 11800 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-11 09:16:46,801 - 11800 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 09:16:46,801 - 11800 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:47,097 - 11800 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-11 09:16:48,117 - 11800 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-11 09:16:48,118 - 11800 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 09:16:48,118 - 11800 - src.utils.log - INFO - βœ… Temp tables populated for route: 1 - __SPLIT__ 2026-02-11 09:16:48,118 - 11800 - src.utils.log - INFO - βœ… Route 1 generation complete - __SPLIT__ 2026-02-11 09:16:48,118 - 11800 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 11800;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:48,404 - 11800 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 09:16:48,404 - 11800 - src.utils.log - INFO - ⏱️ Total time: 21.88s | Status: Completed - __SPLIT__ 2026-02-11 09:16:48,404 - 11800 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 11800;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:48,691 - 11800 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 09:16:48,691 - 11800 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-11 04:16:48.691' WHERE GenerateWorkOrderHistoryId = 11800;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 09:16:48,974 - 11800 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 09:16:48,974 - 11800 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 10:12:06,890 - 123952 - src.utils.log - INFO - ParallelProcessing=True GenerateWorkOrderHistoryId=123952 - __SPLIT__ 2026-02-11 10:12:06,890 - 123952 - src.utils.log - INFO - Parallel Work order generation algo started for GenerateWorkOrderHistoryId: 123952 - __SPLIT__ 2026-02-11 10:12:06,891 - 123952 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 10:12:06,891 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas' ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:08,898 - 123952 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:12:08,898 - 123952 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 10:12:08,898 - 123952 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-11 10:12:08,899 - 123952 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-11 10:12:08,899 - 123952 - src.utils.log - INFO - βœ… Connected to company-specific database: abcdallas - __SPLIT__ 2026-02-11 10:12:08,899 - 123952 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 123952;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:10,806 - 123952 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:12:10,806 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123952), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123952), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 123952 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:11,186 - 123952 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:12:11,186 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 123952;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:11,453 - 123952 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:12:11,456 - 123952 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-11 10:12:11,456 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14655... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:11,732 - 123952 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:12:11,732 - 123952 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-11 10:12:11,735 - 123952 - src.utils.log - INFO - πŸ“Š Found 1 setups to process across 1 routes - __SPLIT__ 2026-02-11 10:12:11,735 - 123952 - src.utils.log - INFO - πŸš€ Starting parallel processing with 8 workers - __SPLIT__ 2026-02-11 10:12:11,736 - 123952 - src.utils.log - INFO - Generating Sequentially as less then one route given - __SPLIT__ 2026-02-11 10:12:11,736 - 123952 - src.utils.log - INFO - πŸ”„ Processing route: 1 with 1 setups - __SPLIT__ 2026-02-11 10:12:11,736 - 123952 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-11 10:12:11,737 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149864;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:12,003 - 123952 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:12:12,003 - 123952 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-11 00:00:00' and ServiceDate <= '2026-03-31 00:00:00' and ServiceSetupId = 149864 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:12,292 - 123952 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:12:12,845 - 123952 - src.utils.log - INFO - Generating work orders for setup: 149864 - __SPLIT__ 2026-02-11 10:12:12,894 - 123952 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-11 10:12:12,900 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:13,168 - 123952 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:12:13,173 - 123952 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-11 10:12:13,173 - 123952 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-11 10:12:13,173 - 123952 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149864 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:13,451 - 123952 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:12:13,451 - 123952 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149864 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:13,732 - 123952 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:12:13,732 - 123952 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149864 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:13,998 - 123952 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:12:13,998 - 123952 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149864 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:14,277 - 123952 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:12:14,277 - 123952 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149864 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:14,559 - 123952 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:12:14,559 - 123952 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149864 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:14,827 - 123952 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:12:14,827 - 123952 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149864 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:15,093 - 123952 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:12:15,093 - 123952 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149864 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:15,381 - 123952 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:12:15,381 - 123952 - src.utils.log - INFO - πŸ“ Inserting 3 work orders for route: 1 - __SPLIT__ 2026-02-11 10:12:15,381 - 123952 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:15,713 - 123952 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-11 10:12:16,864 - 123952 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-11 10:12:16,864 - 123952 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-06 12:28:19.020' and ServiceSetupId = 149864... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:17,150 - 123952 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-11 10:12:17,151 - 123952 - src.utils.log - INFO - βœ… Work order IDs inserted for route 1: 3 records - __SPLIT__ 2026-02-11 10:12:17,151 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149864;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:17,414 - 123952 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:12:17,415 - 123952 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-11 10:12:17,415 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149864... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:17,681 - 123952 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:12:17,681 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149864... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:17,946 - 123952 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:12:17,954 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149864... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:18,227 - 123952 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 10:12:18,229 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149864... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:18,494 - 123952 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:12:18,494 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149864... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:18,759 - 123952 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:12:18,759 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149864;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:19,024 - 123952 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:12:19,024 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149864;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:19,290 - 123952 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:12:19,290 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149864;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:19,575 - 123952 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:12:19,575 - 123952 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149864;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:19,840 - 123952 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:12:19,853 - 123952 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-11 10:12:19,853 - 123952 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:20,153 - 123952 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 10:12:20,153 - 123952 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-11 10:12:20,153 - 123952 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:20,448 - 123952 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-11 10:12:20,449 - 123952 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-11 10:12:20,449 - 123952 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:20,737 - 123952 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-02-11 10:12:20,737 - 123952 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-11 10:12:20,737 - 123952 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:21,025 - 123952 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 0 batches - __SPLIT__ 2026-02-11 10:12:21,025 - 123952 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-11 10:12:21,025 - 123952 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:21,312 - 123952 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-11 10:12:21,313 - 123952 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 10:12:21,313 - 123952 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:21,598 - 123952 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 10:12:21,598 - 123952 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 10:12:21,599 - 123952 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:21,888 - 123952 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-11 10:12:21,888 - 123952 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-11 10:12:21,888 - 123952 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:22,180 - 123952 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-11 10:12:23,117 - 123952 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-11 10:12:23,117 - 123952 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-11 10:12:23,117 - 123952 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:23,412 - 123952 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-11 10:12:24,344 - 123952 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-11 10:12:24,345 - 123952 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 10:12:24,345 - 123952 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:24,616 - 123952 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-11 10:12:25,552 - 123952 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-11 10:12:25,552 - 123952 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 10:12:25,552 - 123952 - src.utils.log - INFO - βœ… Temp tables populated for route: 1 - __SPLIT__ 2026-02-11 10:12:25,552 - 123952 - src.utils.log - INFO - βœ… Route 1 generation complete - __SPLIT__ 2026-02-11 10:12:25,552 - 123952 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123952;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:25,816 - 123952 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:12:25,816 - 123952 - src.utils.log - INFO - ⏱️ Total time: 18.93s | Status: Completed - __SPLIT__ 2026-02-11 10:12:25,816 - 123952 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123952;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:26,080 - 123952 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:12:26,081 - 123952 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-11 05:12:26.081' WHERE GenerateWorkOrderHistoryId = 123952;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:12:26,348 - 123952 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:12:26,349 - 123952 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 10:58:14,520 - 123956 - src.utils.log - INFO - ParallelProcessing=True GenerateWorkOrderHistoryId=123956 - __SPLIT__ 2026-02-11 10:58:14,521 - 123956 - src.utils.log - INFO - Parallel Work order generation algo started for GenerateWorkOrderHistoryId: 123956 - __SPLIT__ 2026-02-11 10:58:14,535 - 123956 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 10:58:14,535 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas' ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:17,089 - 123956 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:58:17,089 - 123956 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 10:58:17,090 - 123956 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-11 10:58:17,090 - 123956 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-11 10:58:17,090 - 123956 - src.utils.log - INFO - βœ… Connected to company-specific database: abcdallas - __SPLIT__ 2026-02-11 10:58:17,091 - 123956 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 123956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:19,616 - 123956 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:58:19,617 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123956), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123956), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 123956 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:19,993 - 123956 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:58:19,994 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 123956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:20,271 - 123956 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:58:20,275 - 123956 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-11 10:58:20,276 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13962... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:20,565 - 123956 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:58:20,565 - 123956 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-11 10:58:20,569 - 123956 - src.utils.log - INFO - πŸ“Š Found 1 setups to process across 1 routes - __SPLIT__ 2026-02-11 10:58:20,569 - 123956 - src.utils.log - INFO - πŸš€ Starting parallel processing with 8 workers - __SPLIT__ 2026-02-11 10:58:20,569 - 123956 - src.utils.log - INFO - Generating Sequentially as less then one route given - __SPLIT__ 2026-02-11 10:58:20,569 - 123956 - src.utils.log - INFO - πŸ”„ Processing route: 1 with 1 setups - __SPLIT__ 2026-02-11 10:58:20,570 - 123956 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-11 10:58:20,571 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149865;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:20,849 - 123956 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:58:20,850 - 123956 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-11 00:00:00' and ServiceDate <= '2026-03-31 00:00:00' and ServiceSetupId = 149865 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:21,140 - 123956 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:58:21,717 - 123956 - src.utils.log - INFO - Generating work orders for setup: 149865 - __SPLIT__ 2026-02-11 10:58:21,740 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:22,020 - 123956 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:58:22,061 - 123956 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-11 10:58:22,067 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:22,342 - 123956 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:58:22,347 - 123956 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-11 10:58:22,347 - 123956 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-11 10:58:22,347 - 123956 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149865 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:22,644 - 123956 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:58:22,645 - 123956 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149865 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:22,935 - 123956 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:58:22,935 - 123956 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149865 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:23,214 - 123956 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:58:23,214 - 123956 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149865 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:23,504 - 123956 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:58:23,505 - 123956 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149865 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:23,799 - 123956 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:58:23,800 - 123956 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149865 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:24,082 - 123956 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:58:24,082 - 123956 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149865 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:24,361 - 123956 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:58:24,361 - 123956 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149865 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:24,654 - 123956 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:58:24,654 - 123956 - src.utils.log - INFO - πŸ“ Inserting 3 work orders for route: 1 - __SPLIT__ 2026-02-11 10:58:24,654 - 123956 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:24,965 - 123956 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-11 10:58:26,125 - 123956 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-11 10:58:26,125 - 123956 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-11 16:22:17.897' and ServiceSetupId = 149865... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:26,420 - 123956 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-11 10:58:26,420 - 123956 - src.utils.log - INFO - βœ… Work order IDs inserted for route 1: 3 records - __SPLIT__ 2026-02-11 10:58:26,420 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149865;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:26,697 - 123956 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:58:26,698 - 123956 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-11 10:58:26,698 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149865... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:26,977 - 123956 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:58:26,978 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149865... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:27,255 - 123956 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:58:27,264 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149865... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:27,549 - 123956 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 10:58:27,550 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149865... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:27,827 - 123956 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:58:27,827 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149865... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:28,102 - 123956 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:58:28,103 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149865;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:28,381 - 123956 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:58:28,381 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149865;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:28,657 - 123956 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:58:28,657 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149865;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:28,957 - 123956 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:58:28,958 - 123956 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149865;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:29,236 - 123956 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:58:29,248 - 123956 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-11 10:58:29,249 - 123956 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:29,525 - 123956 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 10:58:29,526 - 123956 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-11 10:58:29,526 - 123956 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:29,801 - 123956 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-11 10:58:29,802 - 123956 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-11 10:58:29,802 - 123956 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:30,078 - 123956 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-02-11 10:58:30,078 - 123956 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-11 10:58:30,078 - 123956 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:30,354 - 123956 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 0 batches - __SPLIT__ 2026-02-11 10:58:30,354 - 123956 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-11 10:58:30,354 - 123956 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:30,631 - 123956 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-11 10:58:30,631 - 123956 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 10:58:30,631 - 123956 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:30,907 - 123956 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 10:58:30,907 - 123956 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 10:58:30,907 - 123956 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:31,184 - 123956 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-11 10:58:31,184 - 123956 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-11 10:58:31,184 - 123956 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:31,478 - 123956 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-11 10:58:32,451 - 123956 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-11 10:58:32,452 - 123956 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-11 10:58:32,452 - 123956 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:32,735 - 123956 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-11 10:58:33,709 - 123956 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-11 10:58:33,709 - 123956 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 10:58:33,709 - 123956 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:33,994 - 123956 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-11 10:58:34,969 - 123956 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-11 10:58:34,969 - 123956 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 10:58:34,969 - 123956 - src.utils.log - INFO - βœ… Temp tables populated for route: 1 - __SPLIT__ 2026-02-11 10:58:34,969 - 123956 - src.utils.log - INFO - βœ… Route 1 generation complete - __SPLIT__ 2026-02-11 10:58:34,970 - 123956 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:35,246 - 123956 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:58:35,246 - 123956 - src.utils.log - INFO - ⏱️ Total time: 20.73s | Status: Completed - __SPLIT__ 2026-02-11 10:58:35,247 - 123956 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:35,523 - 123956 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:58:35,523 - 123956 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-11 05:58:35.523' WHERE GenerateWorkOrderHistoryId = 123956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:35,800 - 123956 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:58:35,800 - 123956 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 10:58:44,408 - [123956] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[3179085, 3179086] user_id=43135 company_id=133 project_id=[123956] publish_all=False - __SPLIT__ 2026-02-11 10:58:44,409 - [123956] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[3179085, 3179086] user_id=43135 company_id=133 project_id=[123956] publish_all=False - __SPLIT__ 2026-02-11 10:58:44,409 - [123956] - src.utils.log - INFO - Parallel Work order publish in progress for GenerateWorkOrderHistoryId: [123956] - __SPLIT__ 2026-02-11 10:58:44,423 - [123956] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 10:58:44,424 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:47,001 - [123956] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:58:47,002 - [123956] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 10:58:47,002 - [123956] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-11 10:58:47,003 - [123956] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-11 10:58:47,003 - [123956] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 123956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:49,366 - [123956] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:58:49,367 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3179085, 3179086)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:49,633 - [123956] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 10:58:49,633 - [123956] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-11 10:58:49,633 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149865 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:49,907 - [123956] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:58:49,907 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149865 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:50,178 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:58:50,178 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149865 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:50,455 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:58:50,459 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:50,722 - [123956] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 10:58:50,722 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:50,985 - [123956] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:58:50,986 - [123956] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1312310' WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:51,250 - [123956] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:58:51,250 - [123956] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1369663' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:51,513 - [123956] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:58:51,517 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 149865... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:51,785 - [123956] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:58:51,792 - [123956] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-02-11 10:58:51,792 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:58:52,222 - [123956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-11 10:58:53,153 - [123956] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-11 10:58:53,283 - [123956] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-11 10:58:53,283 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-02-11 05:58:51.787';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:04,741 - [123956] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 10:59:04,744 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149865;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:05,006 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:05,015 - [123956] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-02-11 05:58:51.787'; ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-02-11 10:59:05,436 - [123956] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:59:05,441 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:05,738 - [123956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-02-11 10:59:06,675 - [123956] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-11 10:59:06,676 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1312308', '1312309')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:07,000 - [123956] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 10:59:07,009 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 149865 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:07,275 - [123956] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:59:07,276 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 149865 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:07,541 - [123956] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:59:07,542 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 149865 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:07,805 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:07,805 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 149865 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:08,069 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:08,082 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149865;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:08,343 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:08,348 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149865;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:08,610 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:08,613 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149865;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:08,876 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:08,876 - [123956] - src.utils.log - INFO - Parallel Insertion in invoice tables begin - __SPLIT__ 2026-02-11 10:59:08,876 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-02-11 10:59:08,877 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-1_1) - __SPLIT__ 2026-02-11 10:59:08,877 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-1_2) - __SPLIT__ 2026-02-11 10:59:09,162 - [123956] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into Billing.AccountDiscountSetup in 0 batches - __SPLIT__ 2026-02-11 10:59:09,163 - [123956] - src.utils.log - INFO - Insert success for table: Billing.AccountDiscountSetup - __SPLIT__ 2026-02-11 10:59:09,962 - [123956] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into Billing.DiscountApplied in 0 batches - __SPLIT__ 2026-02-11 10:59:09,962 - [123956] - src.utils.log - INFO - Insert success for table: Billing.DiscountApplied - __SPLIT__ 2026-02-11 10:59:10,011 - [123956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-02-11 10:59:10,983 - [123956] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-11 10:59:10,984 - [123956] - src.utils.log - INFO - Insert success for table: Billing.InvoiceCharges - __SPLIT__ 2026-02-11 10:59:10,984 - [123956] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-02-11 10:59:10,985 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:11,249 - [123956] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:59:11,250 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14592' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:11,515 - [123956] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:59:11,517 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:11,986 - [123956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-11 10:59:13,039 - [123956] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-11 10:59:13,175 - [123956] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-11 10:59:13,176 - [123956] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 149865;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:13,443 - [123956] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 10:59:13,444 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1312308', '1312309') AND wo.AccountNumber = '14592' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-02-11 10:59:13,719 - [123956] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 10:59:13,719 - [123956] - src.utils.log - INFO - Parallel fetching temp table records - __SPLIT__ 2026-02-11 10:59:13,720 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3179085, 3179086)... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-02-11 10:59:13,720 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3179085, 3179086)... (Thread: ThreadPoolExecutor-3_1) - __SPLIT__ 2026-02-11 10:59:13,720 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3179085, 3179086)... (Thread: ThreadPoolExecutor-3_2) - __SPLIT__ 2026-02-11 10:59:13,721 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3179085, 3179086)... (Thread: ThreadPoolExecutor-3_3) - __SPLIT__ 2026-02-11 10:59:13,721 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3179085, 3179086)... (Thread: ThreadPoolExecutor-3_4) - __SPLIT__ 2026-02-11 10:59:13,721 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId in (3179085, 3179086)... (Thread: ThreadPoolExecutor-3_5) - __SPLIT__ 2026-02-11 10:59:13,722 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3179085, 3179086) and woag.RefType = 'TempWorkorder';... (Thread: ThreadPoolExecutor-3_6) - __SPLIT__ 2026-02-11 10:59:13,722 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3179085, 3179086);... (Thread: ThreadPoolExecutor-3_7) - __SPLIT__ 2026-02-11 10:59:13,983 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:13,990 - [123956] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 10:59:14,003 - [123956] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 10:59:14,771 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:14,780 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:14,783 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:14,839 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:14,846 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:14,849 - [123956] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-11 10:59:14,862 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:15,124 - [123956] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:59:15,124 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:15,389 - [123956] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 10:59:15,393 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:15,746 - [123956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-11 10:59:16,768 - [123956] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-11 10:59:16,770 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149865 AND WorkOrderNo IN ('728493', '9214984') AND GenerateWorkOrderHistoryId = 123956;... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-02-11 10:59:17,331 - [123956] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 10:59:17,331 - [123956] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-02-11 10:59:17,336 - [123956] - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-02-11 10:59:17,336 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-02-11 10:59:17,337 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_1) - __SPLIT__ 2026-02-11 10:59:17,337 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_2) - __SPLIT__ 2026-02-11 10:59:17,338 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_3) - __SPLIT__ 2026-02-11 10:59:17,338 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_4) - __SPLIT__ 2026-02-11 10:59:17,338 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_5) - __SPLIT__ 2026-02-11 10:59:17,339 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_6) - __SPLIT__ 2026-02-11 10:59:17,339 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_7) - __SPLIT__ 2026-02-11 10:59:17,339 - [123956] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-5_8) - __SPLIT__ 2026-02-11 10:59:17,603 - [123956] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 10:59:17,603 - [123956] - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-02-11 10:59:17,637 - [123956] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 10:59:17,637 - [123956] - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-02-11 10:59:17,638 - [123956] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-11 10:59:17,638 - [123956] - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-02-11 10:59:17,648 - [123956] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 0 batches - __SPLIT__ 2026-02-11 10:59:17,648 - [123956] - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-02-11 10:59:17,650 - [123956] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-11 10:59:17,651 - [123956] - src.utils.log - INFO - [OK] Sub WO completed. - __SPLIT__ 2026-02-11 10:59:17,677 - [123956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-11 10:59:17,677 - [123956] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 0 batches - __SPLIT__ 2026-02-11 10:59:17,680 - [123956] - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-02-11 10:59:17,685 - [123956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-11 10:59:18,424 - [123956] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-11 10:59:18,608 - [123956] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-11 10:59:18,608 - [123956] - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-02-11 10:59:18,654 - [123956] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-11 10:59:18,655 - [123956] - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-02-11 10:59:19,359 - [123956] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-11 10:59:19,360 - [123956] - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-02-11 10:59:19,360 - [123956] - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-02-11 10:59:19,360 - [123956] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-11 10:59:19,361 - [123956] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 123956 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:19,630 - [123956] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 10:59:19,636 - [123956] - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-02-11 10:59:19,776 - [123956] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_da61d229d9 - __SPLIT__ 2026-02-11 10:59:19,915 - [123956] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_da61d229d9 - __SPLIT__ 2026-02-11 10:59:20,465 - [123956] - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-02-11 10:59:20,748 - [123956] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-11 10:59:20,748 - [123956] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_da61d229d9 - __SPLIT__ 2026-02-11 10:59:20,748 - [123956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 123956 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:21,024 - [123956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:59:21,025 - [123956] - src.utils.log - INFO - Parallel deletion from temp tables begin - __SPLIT__ 2026-02-11 10:59:21,025 - [123956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3179085, 3179086) (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-02-11 10:59:21,025 - [123956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3179085, 3179086) (Thread: ThreadPoolExecutor-7_1) - __SPLIT__ 2026-02-11 10:59:21,026 - [123956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3179085, 3179086) (Thread: ThreadPoolExecutor-7_2) - __SPLIT__ 2026-02-11 10:59:21,026 - [123956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3179085, 3179086) (Thread: ThreadPoolExecutor-7_3) - __SPLIT__ 2026-02-11 10:59:21,026 - [123956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3179085, 3179086) (Thread: ThreadPoolExecutor-7_4) - __SPLIT__ 2026-02-11 10:59:21,027 - [123956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3179085, 3179086) (Thread: ThreadPoolExecutor-7_5) - __SPLIT__ 2026-02-11 10:59:21,027 - [123956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3179085, 3179086) (Thread: ThreadPoolExecutor-7_6) - __SPLIT__ 2026-02-11 10:59:21,286 - [123956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:59:21,287 - [123956] - src.utils.log - INFO - [OK] Deleted from SalesPersonCommission - __SPLIT__ 2026-02-11 10:59:21,292 - [123956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:59:21,293 - [123956] - src.utils.log - INFO - [OK] Deleted from SubWorkOrder - __SPLIT__ 2026-02-11 10:59:21,299 - [123956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:59:21,299 - [123956] - src.utils.log - INFO - [OK] Deleted from Adjustment - __SPLIT__ 2026-02-11 10:59:21,326 - [123956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:59:21,327 - [123956] - src.utils.log - INFO - [OK] Deleted from SourceMapping - __SPLIT__ 2026-02-11 10:59:21,327 - [123956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:59:21,327 - [123956] - src.utils.log - INFO - [OK] Deleted from Crews - __SPLIT__ 2026-02-11 10:59:21,337 - [123956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:59:21,337 - [123956] - src.utils.log - INFO - [OK] Deleted from Services - __SPLIT__ 2026-02-11 10:59:21,356 - [123956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:59:21,356 - [123956] - src.utils.log - INFO - [OK] Deleted from AppliedDiscount - __SPLIT__ 2026-02-11 10:59:21,357 - [123956] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3179085, 3179086) (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-02-11 10:59:21,658 - [123956] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 10:59:21,659 - [123956] - src.utils.log - INFO - βœ” Completed batch of 2 records - __SPLIT__ 2026-02-11 10:59:21,659 - [123956] - src.utils.log - INFO - πŸŽ‰ All batches processed. - __SPLIT__ 2026-02-11 10:59:21,659 - [123956] - src.utils.log - INFO - Work order published ids: (3179085, 3179086) - __SPLIT__ 2026-02-11 10:59:21,659 - [123956] - src.utils.log - INFO - Time took to perform operation in publishing [123956]: 37.25 - __SPLIT__ 2026-02-11 10:59:21,659 - [123956] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [123956] - __SPLIT__ 2026-02-11 10:59:21,659 - [123956] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-11 05:59:21.659' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 123956;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 10:59:21,939 - [123956] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 12:15:48,303 - 123958 - src.utils.log - INFO - ParallelProcessing=True GenerateWorkOrderHistoryId=123958 - __SPLIT__ 2026-02-11 12:15:48,304 - 123958 - src.utils.log - INFO - Parallel Work order generation algo started for GenerateWorkOrderHistoryId: 123958 - __SPLIT__ 2026-02-11 12:15:48,305 - 123958 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 12:15:48,305 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas' ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:50,484 - 123958 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:15:50,484 - 123958 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 12:15:50,485 - 123958 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-11 12:15:50,485 - 123958 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-11 12:15:50,485 - 123958 - src.utils.log - INFO - βœ… Connected to company-specific database: abcdallas - __SPLIT__ 2026-02-11 12:15:50,485 - 123958 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 123958;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:52,407 - 123958 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 12:15:52,407 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123958), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123958), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 123958 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:52,785 - 123958 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:15:52,785 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 123958;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:53,059 - 123958 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:15:53,062 - 123958 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-11 12:15:53,063 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13962... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:53,344 - 123958 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:15:53,344 - 123958 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-11 12:15:53,347 - 123958 - src.utils.log - INFO - πŸ“Š Found 1 setups to process across 1 routes - __SPLIT__ 2026-02-11 12:15:53,347 - 123958 - src.utils.log - INFO - πŸš€ Starting parallel processing with 8 workers - __SPLIT__ 2026-02-11 12:15:53,347 - 123958 - src.utils.log - INFO - Generating Sequentially as less then one route given - __SPLIT__ 2026-02-11 12:15:53,347 - 123958 - src.utils.log - INFO - πŸ”„ Processing route: 1 with 1 setups - __SPLIT__ 2026-02-11 12:15:53,348 - 123958 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-11 12:15:53,348 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:53,622 - 123958 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:15:53,623 - 123958 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-11 00:00:00' and ServiceDate <= '2026-03-31 00:00:00' and ServiceSetupId = 149866 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:53,910 - 123958 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:15:54,486 - 123958 - src.utils.log - INFO - Generating work orders for setup: 149866 - __SPLIT__ 2026-02-11 12:15:54,501 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:54,775 - 123958 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:15:54,817 - 123958 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-11 12:15:54,824 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:55,097 - 123958 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:15:55,101 - 123958 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-11 12:15:55,101 - 123958 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-11 12:15:55,101 - 123958 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:55,389 - 123958 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:15:55,389 - 123958 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:55,675 - 123958 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:15:55,676 - 123958 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:55,953 - 123958 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:15:55,953 - 123958 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:56,240 - 123958 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:15:56,240 - 123958 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:56,534 - 123958 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:15:56,534 - 123958 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:56,812 - 123958 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:15:56,812 - 123958 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149866 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:57,088 - 123958 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:15:57,088 - 123958 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149866 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:57,379 - 123958 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:15:57,380 - 123958 - src.utils.log - INFO - πŸ“ Inserting 2 work orders for route: 1 - __SPLIT__ 2026-02-11 12:15:57,380 - 123958 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:57,688 - 123958 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-11 12:15:58,770 - 123958 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-11 12:15:58,770 - 123958 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 2 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-11 16:22:17.897' and ServiceSetupId = 149866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:59,065 - 123958 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:15:59,066 - 123958 - src.utils.log - INFO - βœ… Work order IDs inserted for route 1: 2 records - __SPLIT__ 2026-02-11 12:15:59,066 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:59,339 - 123958 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:15:59,339 - 123958 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-11 12:15:59,340 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:59,616 - 123958 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:15:59,616 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:15:59,890 - 123958 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:15:59,897 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:00,180 - 123958 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:00,182 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:00,462 - 123958 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:00,463 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:00,735 - 123958 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:00,735 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:01,011 - 123958 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:01,012 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:01,285 - 123958 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:01,286 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:01,582 - 123958 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:01,582 - 123958 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:01,858 - 123958 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:01,874 - 123958 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-11 12:16:01,874 - 123958 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:02,148 - 123958 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 12:16:02,148 - 123958 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-11 12:16:02,148 - 123958 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:02,421 - 123958 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-11 12:16:02,422 - 123958 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-11 12:16:02,422 - 123958 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:02,695 - 123958 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-02-11 12:16:02,695 - 123958 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-11 12:16:02,695 - 123958 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:02,977 - 123958 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-02-11 12:16:03,945 - 123958 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-02-11 12:16:03,945 - 123958 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-11 12:16:03,945 - 123958 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:04,219 - 123958 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-11 12:16:04,219 - 123958 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 12:16:04,219 - 123958 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:04,493 - 123958 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 12:16:04,493 - 123958 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 12:16:04,493 - 123958 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:04,767 - 123958 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-11 12:16:04,767 - 123958 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-11 12:16:04,767 - 123958 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:05,045 - 123958 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-11 12:16:06,011 - 123958 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-11 12:16:06,012 - 123958 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-11 12:16:06,012 - 123958 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:06,292 - 123958 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 0 batches - __SPLIT__ 2026-02-11 12:16:06,292 - 123958 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 12:16:06,292 - 123958 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:06,573 - 123958 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-11 12:16:07,537 - 123958 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-11 12:16:07,537 - 123958 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 12:16:07,538 - 123958 - src.utils.log - INFO - βœ… Temp tables populated for route: 1 - __SPLIT__ 2026-02-11 12:16:07,538 - 123958 - src.utils.log - INFO - βœ… Route 1 generation complete - __SPLIT__ 2026-02-11 12:16:07,538 - 123958 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123958;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:07,811 - 123958 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 12:16:07,811 - 123958 - src.utils.log - INFO - ⏱️ Total time: 19.51s | Status: Completed - __SPLIT__ 2026-02-11 12:16:07,811 - 123958 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123958;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:08,085 - 123958 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 12:16:08,085 - 123958 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-11 07:16:08.085' WHERE GenerateWorkOrderHistoryId = 123958;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:08,358 - 123958 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 12:16:08,358 - 123958 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 12:16:22,084 - [123958] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[3179089, 3179090] user_id=43135 company_id=133 project_id=[123958] publish_all=False - __SPLIT__ 2026-02-11 12:16:22,085 - [123958] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[3179089, 3179090] user_id=43135 company_id=133 project_id=[123958] publish_all=False - __SPLIT__ 2026-02-11 12:16:22,085 - [123958] - src.utils.log - INFO - Parallel Work order publish in progress for GenerateWorkOrderHistoryId: [123958] - __SPLIT__ 2026-02-11 12:16:22,086 - [123958] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 12:16:22,086 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:24,116 - [123958] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:16:24,116 - [123958] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 12:16:24,116 - [123958] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-11 12:16:24,117 - [123958] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-11 12:16:24,117 - [123958] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 123958;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:26,059 - [123958] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 12:16:26,059 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3179089, 3179090)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:26,340 - [123958] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:26,341 - [123958] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-11 12:16:26,341 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149866 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:26,630 - [123958] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:16:26,631 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149866 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:26,916 - [123958] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:26,917 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149866 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:27,207 - [123958] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:27,211 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:27,487 - [123958] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:27,487 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:27,765 - [123958] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:16:27,767 - [123958] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1312314' WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:28,045 - [123958] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 12:16:28,045 - [123958] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1369674' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:28,327 - [123958] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 12:16:28,331 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 149866... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:28,614 - [123958] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:16:28,621 - [123958] - src.utils.log - INFO - Size of Transaction: 2 - __SPLIT__ 2026-02-11 12:16:28,622 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:29,042 - [123958] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-11 12:16:30,014 - [123958] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-11 12:16:30,154 - [123958] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-11 12:16:30,155 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911) and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-02-11 07:16:28.616';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:30,614 - [123958] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:30,616 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:30,893 - [123958] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:30,902 - [123958] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911) AND CreatedDate = '2026-02-11 07:16:28.616'; ... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-02-11 12:16:31,297 - [123958] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 12:16:31,302 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:31,588 - [123958] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-02-11 12:16:32,568 - [123958] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-11 12:16:32,568 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo in ('1312313', '1312312')... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:32,907 - [123958] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:32,916 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 149866 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:33,198 - [123958] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:16:33,198 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 149866 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:33,480 - [123958] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:16:33,480 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 149866 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:33,760 - [123958] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:33,760 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 149866 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:34,040 - [123958] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:34,053 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:34,330 - [123958] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:34,335 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:34,614 - [123958] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:34,626 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149866;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:34,905 - [123958] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:34,914 - [123958] - src.utils.log - INFO - Parallel Insertion in invoice tables begin - __SPLIT__ 2026-02-11 12:16:34,914 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-02-11 12:16:34,915 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_1) - __SPLIT__ 2026-02-11 12:16:34,915 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_2) - __SPLIT__ 2026-02-11 12:16:35,196 - [123958] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-02-11 12:16:36,033 - [123958] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-02-11 12:16:36,037 - [123958] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-02-11 12:16:36,179 - [123958] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-02-11 12:16:36,180 - [123958] - src.utils.log - INFO - Insert success for table: Billing.AccountDiscountSetup - __SPLIT__ 2026-02-11 12:16:37,018 - [123958] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-11 12:16:37,018 - [123958] - src.utils.log - INFO - Insert success for table: Billing.InvoiceCharges - __SPLIT__ 2026-02-11 12:16:37,020 - [123958] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-02-11 12:16:37,020 - [123958] - src.utils.log - INFO - Insert success for table: Billing.DiscountApplied - __SPLIT__ 2026-02-11 12:16:37,020 - [123958] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-02-11 12:16:37,022 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:37,298 - [123958] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:16:37,298 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14593' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:37,574 - [123958] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:16:37,576 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:38,025 - [123958] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-11 12:16:39,071 - [123958] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-11 12:16:39,209 - [123958] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-11 12:16:39,211 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1312312', '1312313') AND wo.AccountNumber = '14593' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-02-11 12:16:39,498 - [123958] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:39,499 - [123958] - src.utils.log - INFO - Parallel fetching temp table records - __SPLIT__ 2026-02-11 12:16:39,499 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3179089, 3179090)... (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-02-11 12:16:39,500 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3179089, 3179090)... (Thread: ThreadPoolExecutor-11_1) - __SPLIT__ 2026-02-11 12:16:39,500 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3179089, 3179090)... (Thread: ThreadPoolExecutor-11_2) - __SPLIT__ 2026-02-11 12:16:39,500 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3179089, 3179090)... (Thread: ThreadPoolExecutor-11_3) - __SPLIT__ 2026-02-11 12:16:39,500 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3179089, 3179090)... (Thread: ThreadPoolExecutor-11_4) - __SPLIT__ 2026-02-11 12:16:39,501 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId in (3179089, 3179090)... (Thread: ThreadPoolExecutor-11_5) - __SPLIT__ 2026-02-11 12:16:39,501 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3179089, 3179090) and woag.RefType = 'TempWorkorder';... (Thread: ThreadPoolExecutor-11_6) - __SPLIT__ 2026-02-11 12:16:39,501 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3179089, 3179090);... (Thread: ThreadPoolExecutor-11_7) - __SPLIT__ 2026-02-11 12:16:39,783 - [123958] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:39,784 - [123958] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:39,788 - [123958] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:40,595 - [123958] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:40,623 - [123958] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:40,626 - [123958] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:40,631 - [123958] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:40,646 - [123958] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:40,649 - [123958] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-11 12:16:40,661 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:40,937 - [123958] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:16:40,940 - [123958] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 640 AND CompanyId = 133 AND IsActive = 1;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:41,218 - [123958] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:16:41,221 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:41,496 - [123958] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 12:16:41,500 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:41,793 - [123958] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-11 12:16:42,760 - [123958] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-11 12:16:42,761 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149866 AND WorkOrderNo IN ('2074477', '2468108') AND GenerateWorkOrderHistoryId = 123958;... (Thread: ThreadPoolExecutor-12_0) - __SPLIT__ 2026-02-11 12:16:43,215 - [123958] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 12:16:43,215 - [123958] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-02-11 12:16:43,220 - [123958] - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-02-11 12:16:43,220 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_0) - __SPLIT__ 2026-02-11 12:16:43,221 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_1) - __SPLIT__ 2026-02-11 12:16:43,221 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_2) - __SPLIT__ 2026-02-11 12:16:43,221 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_3) - __SPLIT__ 2026-02-11 12:16:43,222 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_4) - __SPLIT__ 2026-02-11 12:16:43,222 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_5) - __SPLIT__ 2026-02-11 12:16:43,222 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_6) - __SPLIT__ 2026-02-11 12:16:43,223 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_7) - __SPLIT__ 2026-02-11 12:16:43,223 - [123958] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-13_8) - __SPLIT__ 2026-02-11 12:16:43,495 - [123958] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-11 12:16:43,499 - [123958] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 12:16:43,499 - [123958] - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-02-11 12:16:43,508 - [123958] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-11 12:16:43,511 - [123958] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 12:16:43,512 - [123958] - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-02-11 12:16:43,519 - [123958] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-02-11 12:16:43,523 - [123958] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-11 12:16:43,523 - [123958] - src.utils.log - INFO - [OK] Sub WO completed. - __SPLIT__ 2026-02-11 12:16:43,580 - [123958] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 0 batches - __SPLIT__ 2026-02-11 12:16:43,580 - [123958] - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-02-11 12:16:43,584 - [123958] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-11 12:16:43,584 - [123958] - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-02-11 12:16:44,330 - [123958] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-11 12:16:44,440 - [123958] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-11 12:16:44,440 - [123958] - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-02-11 12:16:44,487 - [123958] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-11 12:16:44,487 - [123958] - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-02-11 12:16:44,527 - [123958] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-02-11 12:16:44,527 - [123958] - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-02-11 12:16:45,303 - [123958] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-11 12:16:45,303 - [123958] - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-02-11 12:16:45,304 - [123958] - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-02-11 12:16:45,304 - [123958] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-11 12:16:45,304 - [123958] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 123958 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:45,582 - [123958] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 12:16:45,588 - [123958] - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-02-11 12:16:45,729 - [123958] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_18549041b4 - __SPLIT__ 2026-02-11 12:16:45,870 - [123958] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_18549041b4 - __SPLIT__ 2026-02-11 12:16:46,428 - [123958] - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-02-11 12:16:46,717 - [123958] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-11 12:16:46,717 - [123958] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_18549041b4 - __SPLIT__ 2026-02-11 12:16:46,717 - [123958] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 123958 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:46,993 - [123958] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:16:46,993 - [123958] - src.utils.log - INFO - Parallel deletion from temp tables begin - __SPLIT__ 2026-02-11 12:16:46,994 - [123958] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3179089, 3179090) (Thread: ThreadPoolExecutor-15_0) - __SPLIT__ 2026-02-11 12:16:46,994 - [123958] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3179089, 3179090) (Thread: ThreadPoolExecutor-15_1) - __SPLIT__ 2026-02-11 12:16:46,994 - [123958] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3179089, 3179090) (Thread: ThreadPoolExecutor-15_2) - __SPLIT__ 2026-02-11 12:16:46,995 - [123958] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3179089, 3179090) (Thread: ThreadPoolExecutor-15_3) - __SPLIT__ 2026-02-11 12:16:46,995 - [123958] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3179089, 3179090) (Thread: ThreadPoolExecutor-15_4) - __SPLIT__ 2026-02-11 12:16:46,995 - [123958] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3179089, 3179090) (Thread: ThreadPoolExecutor-15_5) - __SPLIT__ 2026-02-11 12:16:46,996 - [123958] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3179089, 3179090) (Thread: ThreadPoolExecutor-15_6) - __SPLIT__ 2026-02-11 12:16:47,264 - [123958] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:16:47,264 - [123958] - src.utils.log - INFO - [OK] Deleted from SalesPersonCommission - __SPLIT__ 2026-02-11 12:16:47,270 - [123958] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:16:47,270 - [123958] - src.utils.log - INFO - [OK] Deleted from SubWorkOrder - __SPLIT__ 2026-02-11 12:16:47,272 - [123958] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:16:47,272 - [123958] - src.utils.log - INFO - [OK] Deleted from Adjustment - __SPLIT__ 2026-02-11 12:16:47,283 - [123958] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:16:47,283 - [123958] - src.utils.log - INFO - [OK] Deleted from SourceMapping - __SPLIT__ 2026-02-11 12:16:47,297 - [123958] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:16:47,297 - [123958] - src.utils.log - INFO - [OK] Deleted from Services - __SPLIT__ 2026-02-11 12:16:47,319 - [123958] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:16:47,319 - [123958] - src.utils.log - INFO - [OK] Deleted from Crews - __SPLIT__ 2026-02-11 12:16:47,340 - [123958] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:16:47,341 - [123958] - src.utils.log - INFO - [OK] Deleted from AppliedDiscount - __SPLIT__ 2026-02-11 12:16:47,341 - [123958] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3179089, 3179090) (Thread: ThreadPoolExecutor-14_0) - __SPLIT__ 2026-02-11 12:16:47,646 - [123958] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 12:16:47,646 - [123958] - src.utils.log - INFO - βœ” Completed batch of 2 records - __SPLIT__ 2026-02-11 12:16:47,646 - [123958] - src.utils.log - INFO - πŸŽ‰ All batches processed. - __SPLIT__ 2026-02-11 12:16:47,647 - [123958] - src.utils.log - INFO - Work order published ids: (3179089, 3179090) - __SPLIT__ 2026-02-11 12:16:47,647 - [123958] - src.utils.log - INFO - Time took to perform operation in publishing [123958]: 25.56 - __SPLIT__ 2026-02-11 12:16:47,647 - [123958] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [123958] - __SPLIT__ 2026-02-11 12:16:47,647 - [123958] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-11 07:16:47.646' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 123958;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 12:16:47,924 - [123958] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 16:20:23,343 - 123962 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=123962 - __SPLIT__ 2026-02-11 16:20:23,344 - 123962 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 123962 - __SPLIT__ 2026-02-11 16:20:23,344 - 123962 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 16:20:23,344 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:25,412 - 123962 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:20:25,412 - 123962 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 16:20:25,412 - 123962 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-11 16:20:25,413 - 123962 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-11 16:20:25,413 - 123962 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 123962;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:27,305 - 123962 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 16:20:27,305 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123962), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123962), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 123962 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:27,686 - 123962 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:20:27,686 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 123962;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:27,957 - 123962 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:20:27,960 - 123962 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-11 16:20:27,961 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14646... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:28,243 - 123962 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-02-11 16:20:28,244 - 123962 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-11 16:20:28,247 - 123962 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-11 16:20:28,247 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 51040;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:28,518 - 123962 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:20:28,518 - 123962 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-11 00:00:00' and ServiceDate <= '2027-12-31 00:00:00' and ServiceSetupId = 51040 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:28,803 - 123962 - src.utils.log - INFO - βœ… Fetched 43 rows - __SPLIT__ 2026-02-11 16:20:29,372 - 123962 - src.utils.log - INFO - Generating work orders for setup: 51040 - __SPLIT__ 2026-02-11 16:20:29,459 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11429;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:29,729 - 123962 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:20:29,773 - 123962 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-11 16:20:29,780 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:30,049 - 123962 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:20:30,053 - 123962 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-11 16:20:30,053 - 123962 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-11 16:20:30,053 - 123962 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 51040 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:30,342 - 123962 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:20:30,342 - 123962 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 51040 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:30,636 - 123962 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:20:30,636 - 123962 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 51040 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:30,909 - 123962 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:20:30,909 - 123962 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 51040 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:31,196 - 123962 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:20:31,196 - 123962 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 51040 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:31,488 - 123962 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:20:31,488 - 123962 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 51040 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:31,763 - 123962 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:20:31,763 - 123962 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 51040 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:32,036 - 123962 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:20:32,036 - 123962 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 51040 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:32,335 - 123962 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:20:32,335 - 123962 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:32,641 - 123962 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-11 16:20:34,086 - 123962 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-11 16:20:34,086 - 123962 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 11 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-11 16:22:17.907' and ServiceSetupId = 51040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:34,374 - 123962 - src.utils.log - INFO - βœ… Fetched 11 rows - __SPLIT__ 2026-02-11 16:20:34,374 - 123962 - src.utils.log - INFO - Id's of work order inserted to DB: [3179131 3179132 3179133 3179134 3179135 3179136 3179137 3179138 3179139 3179140 3179141] - __SPLIT__ 2026-02-11 16:20:34,374 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 51040;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:34,645 - 123962 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:20:34,645 - 123962 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-11 16:20:34,646 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 51040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:34,918 - 123962 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:20:34,919 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 51040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:35,189 - 123962 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:20:35,193 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 51040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:35,472 - 123962 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:20:35,473 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 51040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:35,744 - 123962 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:20:35,745 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 51040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:36,015 - 123962 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:20:36,015 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 51040;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:36,288 - 123962 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:20:36,289 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 51040;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:36,559 - 123962 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:20:36,559 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 51040;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:36,851 - 123962 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:20:36,851 - 123962 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 51040;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:37,124 - 123962 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:20:37,136 - 123962 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-11 16:20:37,137 - 123962 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:37,407 - 123962 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 16:20:37,407 - 123962 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-11 16:20:37,407 - 123962 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:37,677 - 123962 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-11 16:20:37,678 - 123962 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-11 16:20:37,678 - 123962 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:37,948 - 123962 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-02-11 16:20:37,948 - 123962 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-11 16:20:37,948 - 123962 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:38,226 - 123962 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-02-11 16:20:39,193 - 123962 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-02-11 16:20:39,193 - 123962 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-11 16:20:39,193 - 123962 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:39,465 - 123962 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-11 16:20:39,465 - 123962 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 16:20:39,465 - 123962 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:39,737 - 123962 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 16:20:39,737 - 123962 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 16:20:39,737 - 123962 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:40,007 - 123962 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-11 16:20:40,007 - 123962 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-11 16:20:40,008 - 123962 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:40,283 - 123962 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-11 16:20:41,244 - 123962 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-11 16:20:41,245 - 123962 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-11 16:20:41,245 - 123962 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:41,515 - 123962 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 0 batches - __SPLIT__ 2026-02-11 16:20:41,515 - 123962 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 16:20:41,515 - 123962 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 11 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:41,793 - 123962 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 11) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-11 16:20:42,762 - 123962 - src.utils.log - INFO - βœ… All 11 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-11 16:20:42,762 - 123962 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 16:20:42,762 - 123962 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123962;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:43,035 - 123962 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 16:20:43,036 - 123962 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-02-11 16:20:43,036 - 123962 - src.utils.log - INFO - Time took to perform operation: 19.69 - __SPLIT__ 2026-02-11 16:20:43,036 - 123962 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123962;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:43,306 - 123962 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 16:20:43,306 - 123962 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-11 11:20:43.306' WHERE GenerateWorkOrderHistoryId = 123962;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:20:43,577 - 123962 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 16:21:06,798 - [123962] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3179141] user_id=43135 company_id=133 project_id=[123962] publish_all=False - __SPLIT__ 2026-02-11 16:21:06,799 - [123962] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3179141] user_id=43135 company_id=133 project_id=[123962] publish_all=False - __SPLIT__ 2026-02-11 16:21:06,799 - [123962] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [123962] - __SPLIT__ 2026-02-11 16:21:06,813 - [123962] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 16:21:06,813 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:09,429 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:09,429 - [123962] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 16:21:09,430 - [123962] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-11 16:21:09,430 - [123962] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-11 16:21:09,430 - [123962] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 123962;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:11,806 - [123962] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 16:21:11,806 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3179141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:12,075 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:12,075 - [123962] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-11 16:21:12,076 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 51040 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:12,352 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:12,353 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 51040 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:12,627 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:12,627 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 51040 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:12,905 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:12,909 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:13,173 - [123962] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 16:21:13,173 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:13,436 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:13,437 - [123962] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1312319' WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:13,702 - [123962] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 16:21:13,703 - [123962] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1369679' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:13,967 - [123962] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 16:21:13,971 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 51040... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:14,241 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:14,248 - [123962] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-02-11 16:21:14,249 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:14,648 - [123962] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-11 16:21:15,624 - [123962] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-11 16:21:15,755 - [123962] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-11 16:21:15,755 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-02-11 11:21:14.243';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:16,148 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:16,151 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 51040;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:16,415 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:16,424 - [123962] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-02-11 11:21:14.243'; ... (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-02-11 16:21:16,815 - [123962] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 16:21:16,819 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:17,092 - [123962] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-02-11 16:21:18,034 - [123962] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-11 16:21:18,034 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1312318'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:18,354 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:18,363 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 51040 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:18,631 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:18,632 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 51040 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:18,900 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:18,900 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 51040 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:19,167 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:19,167 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 51040 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:19,433 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:19,446 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 51040;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:19,710 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:19,714 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 51040;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:19,979 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:19,990 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 51040;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:20,255 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:20,263 - [123962] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-02-11 16:21:20,263 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:20,533 - [123962] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.AccountDiscountSetup - __SPLIT__ 2026-02-11 16:21:21,472 - [123962] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-02-11 16:21:21,472 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:21,744 - [123962] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.InvoiceCharges - __SPLIT__ 2026-02-11 16:21:22,674 - [123962] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-11 16:21:22,674 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:22,941 - [123962] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.DiscountApplied - __SPLIT__ 2026-02-11 16:21:23,870 - [123962] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-02-11 16:21:23,871 - [123962] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-02-11 16:21:23,872 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:24,135 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:24,135 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '627619' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:24,398 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:24,400 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:24,831 - [123962] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-11 16:21:25,799 - [123962] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-11 16:21:25,934 - [123962] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-11 16:21:25,936 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1312318' AND wo.AccountNumber = '627619' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-02-11 16:21:26,202 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:26,203 - [123962] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-02-11 16:21:26,203 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3179141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:26,475 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:26,475 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3179141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:26,740 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:26,740 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3179141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:27,008 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:27,008 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3179141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:27,273 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:27,273 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3179141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:27,539 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:27,539 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId = 3179141... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:27,820 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:27,820 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3179141 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:28,087 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:28,087 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3179141;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:28,351 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:28,353 - [123962] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-11 16:21:28,366 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:28,628 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:28,631 - [123962] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 1109 AND CompanyId = 133 AND IsActive = 1;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:28,893 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:28,896 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:29,159 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:29,163 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:29,451 - [123962] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-11 16:21:30,393 - [123962] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-11 16:21:30,394 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 51040 AND WorkOrderNo = '5236584' AND GenerateWorkOrderHistoryId = 123962; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:30,689 - [123962] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 16:21:30,693 - [123962] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-02-11 16:21:30,693 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:30,957 - [123962] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 16:21:30,957 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:31,227 - [123962] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-02-11 16:21:32,161 - [123962] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-02-11 16:21:32,162 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:32,425 - [123962] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 0 batches - __SPLIT__ 2026-02-11 16:21:32,425 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:32,688 - [123962] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 16:21:32,688 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:32,959 - [123962] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-11 16:21:33,899 - [123962] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-11 16:21:33,899 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:34,163 - [123962] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-11 16:21:34,163 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:34,431 - [123962] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-11 16:21:35,362 - [123962] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-11 16:21:35,362 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:35,625 - [123962] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 0 batches - __SPLIT__ 2026-02-11 16:21:35,626 - [123962] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:35,896 - [123962] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-11 16:21:36,830 - [123962] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-11 16:21:36,831 - [123962] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-11 16:21:36,831 - [123962] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 123962 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:37,096 - [123962] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 16:21:37,102 - [123962] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-02-11 16:21:37,235 - [123962] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_14a4434a0e - __SPLIT__ 2026-02-11 16:21:37,500 - [123962] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_14a4434a0e - __SPLIT__ 2026-02-11 16:21:37,767 - [123962] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-02-11 16:21:37,908 - [123962] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-11 16:21:38,053 - [123962] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_14a4434a0e - __SPLIT__ 2026-02-11 16:21:38,053 - [123962] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_14a4434a0e - __SPLIT__ 2026-02-11 16:21:38,053 - [123962] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 123962 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:38,315 - [123962] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:21:38,316 - [123962] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-02-11 16:21:38,316 - [123962] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3179141 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:38,605 - [123962] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:21:38,605 - [123962] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3179141 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:38,885 - [123962] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:21:38,885 - [123962] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3179141 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:39,149 - [123962] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:21:39,149 - [123962] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3179141 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:39,466 - [123962] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:21:39,467 - [123962] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3179141 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:39,738 - [123962] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:21:39,738 - [123962] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3179141 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:40,002 - [123962] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:21:40,003 - [123962] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3179141 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:40,267 - [123962] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:21:40,267 - [123962] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3179141 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:40,544 - [123962] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 16:21:40,545 - [123962] - src.utils.log - INFO - Work order published ids: (3179141,) - __SPLIT__ 2026-02-11 16:21:40,545 - [123962] - src.utils.log - INFO - Time took to perform operation in publishing [123962]: 33.75 - __SPLIT__ 2026-02-11 16:21:40,545 - [123962] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [123962] - __SPLIT__ 2026-02-11 16:21:40,545 - [123962] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-11 11:21:40.545' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 123962;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 16:21:40,815 - [123962] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 21:49:49,211 - 123964 - src.utils.log - INFO - ParallelProcessing=False GenerateWorkOrderHistoryId=123964 - __SPLIT__ 2026-02-11 21:49:49,211 - 123964 - src.utils.log - INFO - Sequential Work order generation algo started for GenerateWorkOrderHistoryId: 123964 - __SPLIT__ 2026-02-11 21:49:49,212 - 123964 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 21:49:49,212 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:51,437 - 123964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:49:51,438 - 123964 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 21:49:51,438 - 123964 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-11 21:49:51,438 - 123964 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-11 21:49:51,438 - 123964 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 123964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:53,509 - 123964 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 21:49:53,509 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123964), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123964), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 123964 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:53,888 - 123964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:49:53,889 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 123964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:54,173 - 123964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:49:54,176 - 123964 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-11 21:49:54,176 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14653... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:54,470 - 123964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:49:54,470 - 123964 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-11 21:49:54,473 - 123964 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-11 21:49:54,473 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149870;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:54,757 - 123964 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:49:54,757 - 123964 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-12 00:00:00' and ServiceDate <= '2026-03-31 00:00:00' and ServiceSetupId = 149870 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:55,053 - 123964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:49:55,640 - 123964 - src.utils.log - INFO - Generating work orders for setup: 149870 - __SPLIT__ 2026-02-11 21:49:55,657 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 1133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:55,939 - 123964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:49:55,983 - 123964 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-11 21:49:55,989 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:56,271 - 123964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:49:56,275 - 123964 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-11 21:49:56,275 - 123964 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-11 21:49:56,275 - 123964 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149870 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:56,570 - 123964 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:49:56,570 - 123964 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149870 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:56,865 - 123964 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:49:56,865 - 123964 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149870 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:57,149 - 123964 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:49:57,150 - 123964 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149870 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:57,448 - 123964 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:49:57,448 - 123964 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149870 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:57,748 - 123964 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:49:57,748 - 123964 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149870 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:58,034 - 123964 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:49:58,034 - 123964 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149870 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:58,319 - 123964 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:49:58,319 - 123964 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149870 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:58,621 - 123964 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:49:58,621 - 123964 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:49:58,968 - 123964 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-11 21:50:00,014 - 123964 - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-11 21:50:00,015 - 123964 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 1 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-11 16:22:17.907' and ServiceSetupId = 149870... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:00,313 - 123964 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:00,314 - 123964 - src.utils.log - INFO - Id's of work order inserted to DB: [3179143] - __SPLIT__ 2026-02-11 21:50:00,314 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149870;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:00,595 - 123964 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:00,595 - 123964 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-11 21:50:00,596 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149870... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:00,879 - 123964 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 21:50:00,880 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149870... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:01,163 - 123964 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 21:50:01,172 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149870... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:01,463 - 123964 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-11 21:50:01,465 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149870... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:01,748 - 123964 - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-02-11 21:50:01,750 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149870... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:02,031 - 123964 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:02,032 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149870;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:02,315 - 123964 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:02,315 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149870;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:02,597 - 123964 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:02,597 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149870;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:02,902 - 123964 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:02,902 - 123964 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149870;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:03,185 - 123964 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:03,200 - 123964 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-11 21:50:03,200 - 123964 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:03,507 - 123964 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 21:50:03,507 - 123964 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-11 21:50:03,507 - 123964 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:03,812 - 123964 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-11 21:50:03,812 - 123964 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-11 21:50:03,812 - 123964 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:04,118 - 123964 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 0 batches - __SPLIT__ 2026-02-11 21:50:04,118 - 123964 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-11 21:50:04,118 - 123964 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:04,424 - 123964 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 0 batches - __SPLIT__ 2026-02-11 21:50:04,424 - 123964 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-11 21:50:04,424 - 123964 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:04,734 - 123964 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-11 21:50:04,734 - 123964 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 21:50:04,734 - 123964 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:05,039 - 123964 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 21:50:05,040 - 123964 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-11 21:50:05,040 - 123964 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:05,351 - 123964 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-02-11 21:50:06,346 - 123964 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-02-11 21:50:06,346 - 123964 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-11 21:50:06,346 - 123964 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:06,655 - 123964 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-11 21:50:07,648 - 123964 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-11 21:50:07,649 - 123964 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-11 21:50:07,649 - 123964 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:07,962 - 123964 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 0 batches - __SPLIT__ 2026-02-11 21:50:07,963 - 123964 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 21:50:07,963 - 123964 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:08,251 - 123964 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-11 21:50:09,253 - 123964 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-11 21:50:09,253 - 123964 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-11 21:50:09,253 - 123964 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:09,534 - 123964 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 21:50:09,534 - 123964 - src.utils.log - INFO - Sequential work order generation successful - __SPLIT__ 2026-02-11 21:50:09,534 - 123964 - src.utils.log - INFO - Time took to perform operation: 20.32 - __SPLIT__ 2026-02-11 21:50:09,534 - 123964 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:09,816 - 123964 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 21:50:09,816 - 123964 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-11 16:50:09.816' WHERE GenerateWorkOrderHistoryId = 123964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:10,104 - 123964 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 21:50:22,033 - [123964] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3179143] user_id=43135 company_id=133 project_id=[123964] publish_all=False - __SPLIT__ 2026-02-11 21:50:22,034 - [123964] - src.utils.log - INFO - ParallelProcessing=False temp_wo=[3179143] user_id=43135 company_id=133 project_id=[123964] publish_all=False - __SPLIT__ 2026-02-11 21:50:22,034 - [123964] - src.utils.log - INFO - Sequential Work order publish in progress for GenerateWorkOrderHistoryId: [123964] - __SPLIT__ 2026-02-11 21:50:22,035 - [123964] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-11 21:50:22,035 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:24,146 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:24,146 - [123964] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-11 21:50:24,147 - [123964] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-11 21:50:24,147 - [123964] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-11 21:50:24,147 - [123964] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 123964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:26,103 - [123964] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 21:50:26,103 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3179143... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:26,386 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:26,387 - [123964] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-11 21:50:26,387 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149870 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:26,679 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:26,679 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149870 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:26,966 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:26,967 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149870 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:27,259 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:27,263 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:27,543 - [123964] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 21:50:27,543 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:27,823 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:27,824 - [123964] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1312322' WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:28,106 - [123964] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 21:50:28,106 - [123964] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1369682' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:28,389 - [123964] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 21:50:28,394 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 149870... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:28,677 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:28,684 - [123964] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-02-11 21:50:28,685 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:29,132 - [123964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-11 21:50:30,123 - [123964] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-11 21:50:30,263 - [123964] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-11 21:50:30,263 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-02-11 16:50:28.679';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:30,677 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:30,679 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149870;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:30,960 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:30,968 - [123964] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-02-11 16:50:28.679'; ... (Thread: ThreadPoolExecutor-16_0) - __SPLIT__ 2026-02-11 21:50:31,367 - [123964] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-11 21:50:31,371 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:31,684 - [123964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-02-11 21:50:32,673 - [123964] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-11 21:50:32,673 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1312321'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:33,003 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:33,012 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 149870 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:33,295 - [123964] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 21:50:33,295 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 149870 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:33,579 - [123964] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 21:50:33,580 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 149870 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:33,862 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:33,862 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 149870 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:34,146 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:34,159 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149870;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:34,438 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:34,443 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149870;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:34,723 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:34,726 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149870;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:35,006 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:35,006 - [123964] - src.utils.log - INFO - Sequential Insertion in invoice tables begin - __SPLIT__ 2026-02-11 21:50:35,006 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:35,312 - [123964] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into Billing.AccountDiscountSetup in 0 batches - __SPLIT__ 2026-02-11 21:50:35,313 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:35,628 - [123964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-02-11 21:50:36,617 - [123964] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-11 21:50:36,617 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:36,922 - [123964] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into Billing.DiscountApplied in 0 batches - __SPLIT__ 2026-02-11 21:50:36,923 - [123964] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-02-11 21:50:36,924 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:37,203 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:37,203 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14598' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:37,483 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:37,485 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:37,964 - [123964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-11 21:50:38,972 - [123964] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-11 21:50:39,111 - [123964] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-11 21:50:39,113 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo = '1312321' AND wo.AccountNumber = '14598' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-17_0) - __SPLIT__ 2026-02-11 21:50:39,398 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:39,399 - [123964] - src.utils.log - INFO - Sequential fetching temp table records - __SPLIT__ 2026-02-11 21:50:39,399 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId = 3179143... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:39,685 - [123964] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 21:50:39,686 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId = 3179143... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:39,966 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:39,966 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId = 3179143... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:40,250 - [123964] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 21:50:40,250 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId = 3179143... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:40,530 - [123964] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-11 21:50:40,530 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId = 3179143... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:40,812 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:40,812 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId = 3179143... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:41,106 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:41,106 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId = 3179143 and woag.RefType = 'TempWorkorder';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:41,388 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:41,388 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId = 3179143;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:41,668 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:41,671 - [123964] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-11 21:50:41,689 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:41,968 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:41,968 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:42,248 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:42,252 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:42,579 - [123964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-11 21:50:43,579 - [123964] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-11 21:50:43,580 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149870 AND WorkOrderNo = '4170240' AND GenerateWorkOrderHistoryId = 123964; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:43,912 - [123964] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-11 21:50:43,917 - [123964] - src.utils.log - INFO - Sequential Insertion in work order tables begin - __SPLIT__ 2026-02-11 21:50:43,918 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:44,196 - [123964] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-11 21:50:44,196 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:44,498 - [123964] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 0 batches - __SPLIT__ 2026-02-11 21:50:44,498 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:44,811 - [123964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-02-11 21:50:45,805 - [123964] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-02-11 21:50:45,806 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:46,109 - [123964] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-11 21:50:46,109 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:46,420 - [123964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-11 21:50:47,416 - [123964] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-11 21:50:47,417 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:47,724 - [123964] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-11 21:50:47,724 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:48,036 - [123964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-11 21:50:49,023 - [123964] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-11 21:50:49,023 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:49,327 - [123964] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 0 batches - __SPLIT__ 2026-02-11 21:50:49,327 - [123964] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:49,638 - [123964] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-11 21:50:50,629 - [123964] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-11 21:50:50,629 - [123964] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-11 21:50:50,629 - [123964] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 123964 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:50,910 - [123964] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-11 21:50:50,916 - [123964] - src.utils.log - INFO - πŸ”„ Updating next gen date sequentially: inside update_next_workorder_generation - __SPLIT__ 2026-02-11 21:50:51,056 - [123964] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_3050bd814a - __SPLIT__ 2026-02-11 21:50:51,336 - [123964] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_3050bd814a - __SPLIT__ 2026-02-11 21:50:51,614 - [123964] - src.utils.log - INFO - πŸ” Running MERGE update to apply changes - __SPLIT__ 2026-02-11 21:50:51,764 - [123964] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-11 21:50:51,909 - [123964] - src.utils.log - INFO - πŸ” Verified successfully updated 1 rows via #tbl_3050bd814a - __SPLIT__ 2026-02-11 21:50:51,909 - [123964] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_3050bd814a - __SPLIT__ 2026-02-11 21:50:51,909 - [123964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 123964 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:52,188 - [123964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:50:52,188 - [123964] - src.utils.log - INFO - Sequential deletion from temp tables begin - __SPLIT__ 2026-02-11 21:50:52,188 - [123964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId = 3179143 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:52,491 - [123964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:50:52,491 - [123964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId = 3179143 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:52,787 - [123964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:50:52,787 - [123964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId = 3179143 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:53,067 - [123964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:50:53,068 - [123964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId = 3179143 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:53,394 - [123964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:50:53,394 - [123964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId = 3179143 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:53,680 - [123964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:50:53,680 - [123964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3179143 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:53,959 - [123964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:50:53,960 - [123964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId = 3179143 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:54,238 - [123964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:50:54,238 - [123964] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId = 3179143 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:54,531 - [123964] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-11 21:50:54,531 - [123964] - src.utils.log - INFO - Work order published ids: (3179143,) - __SPLIT__ 2026-02-11 21:50:54,531 - [123964] - src.utils.log - INFO - Time took to perform operation in publishing [123964]: 32.5 - __SPLIT__ 2026-02-11 21:50:54,531 - [123964] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [123964] - __SPLIT__ 2026-02-11 21:50:54,531 - [123964] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-11 16:50:54.531' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 123964;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-11 21:50:54,815 - [123964] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:13:54,016 - 42281 - src.utils.log - INFO - ParallelProcessing=True GenerateInvoiceHistoryId=42281 - __SPLIT__ 2026-02-12 07:13:54,017 - 42281 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-12 07:13:54,017 - 42281 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:13:56,034 - 42281 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:13:56,035 - 42281 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:13:56,035 - 42281 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-12 07:13:56,036 - 42281 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-12 07:13:56,036 - 42281 - src.utils.log - INFO - Parallel Invoice generation algo started for GenerateInvoiceHistoryId: 42281 - __SPLIT__ 2026-02-12 07:13:56,036 - 42281 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42281;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:13:57,868 - 42281 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:13:57,868 - 42281 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42281;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:13:58,132 - 42281 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:13:58,133 - 42281 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '14568' and ss.ServiceSetupId = 149871;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:13:58,407 - 42281 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:13:58,411 - 42281 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-02-12 07:13:58,412 - 42281 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-12 07:13:58,412 - 42281 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13966... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:13:58,687 - 42281 - src.utils.log - INFO - βœ… Fetched 12 rows - __SPLIT__ 2026-02-12 07:13:58,687 - 42281 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-12 07:13:58,696 - 42281 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 149871 AND TransactionDate BETWEEN '2026-02-12 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:13:58,964 - 42281 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:13:58,972 - 42281 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, Inv.InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-02-12 00:00:00' AND '2026-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 149871;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:13:59,297 - 42281 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:13:59,305 - 42281 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:13:59,601 - 42281 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-02-12 07:14:00,547 - 42281 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-02-12 07:14:00,548 - 42281 - src.utils.log - INFO - - __SPLIT__ 2026-02-12 07:14:00,548 - 42281 - src.utils.log - INFO - Total invoice generated: 10 - __SPLIT__ 2026-02-12 07:14:00,548 - 42281 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 10 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-02-11 10:52:17.912' and ServiceSetupId = 149871 and GenerateWorkOrderHistoryId= 42281;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:14:00,817 - 42281 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-02-12 07:14:00,824 - 42281 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:14:01,119 - 42281 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-02-12 07:14:02,052 - 42281 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-02-12 07:14:02,053 - 42281 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (634119, 634120, 634121, 634122, 634123, 634124, 634125, 634126, 634127, 634128);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:14:02,321 - 42281 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-02-12 07:14:02,322 - 42281 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 149871 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:14:02,588 - 42281 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:14:02,601 - 42281 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149871;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:14:02,864 - 42281 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:14:02,865 - 42281 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-02-12 07:14:02,865 - 42281 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 20 rows in batches of 25000 (Thread: ThreadPoolExecutor-0_1) - __SPLIT__ 2026-02-12 07:14:03,152 - 42281 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 0 batches - __SPLIT__ 2026-02-12 07:14:04,025 - 42281 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-02-12 07:14:05,311 - 42281 - src.utils.log - INFO - βœ… All 20 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-02-12 07:14:05,311 - 42281 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42281;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:14:05,574 - 42281 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:14:05,574 - 42281 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-02-12 02:14:05.574' WHERE GenerateInvoiceHistoryId = 42281;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:14:05,857 - 42281 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:14:05,857 - 42281 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:14:05,857 - 42281 - src.utils.log - INFO - Parallel Invoice Gen Complete Successfully ProjectId:42281 - Time took: 11.84 - __SPLIT__ 2026-02-12 07:17:35,690 - [42281] - src.utils.log - INFO - ParallelProcessing=True temp_invoice=[] user_id=43135 company_id=133 project_id=[42281] publish_all=True - __SPLIT__ 2026-02-12 07:17:35,690 - [42281] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-02-12 07:17:35,691 - [42281] - src.utils.log - INFO - Parallel invoice publish in progress - __SPLIT__ 2026-02-12 07:17:35,692 - [42281] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-12 07:17:35,692 - [42281] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:37,694 - [42281] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:17:37,695 - [42281] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:17:37,695 - [42281] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-12 07:17:37,696 - [42281] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-12 07:17:37,696 - [42281] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-02-12 02:17:37.696' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42281;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:39,629 - [42281] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:17:39,630 - [42281] - src.utils.log - INFO - πŸ” Fetching data: SELECT i.* FROM Billing.InvoiceAutoGeneration i join Billing.TransactionAutoGeneration t on i.TransactionAutoGenerationId = t.TransactionAutoGenerationId WHERE t.GenerateWorkOrderHistoryId = 42281; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:39,924 - [42281] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-02-12 07:17:39,925 - [42281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (634119, 634120, 634121, 634122, 634123, 634124, 634125, 634126, 634127, 634128);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:40,203 - [42281] - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-02-12 07:17:40,205 - [42281] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:40,623 - [42281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-12 07:17:41,611 - [42281] - src.utils.log - INFO - βœ… All 10 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-12 07:17:41,749 - [42281] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-12 07:17:41,749 - [42281] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912, 12345678913, 12345678914, 12345678915, 12345678916, 12345678917, 12345678918, 12345678919);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:42,561 - [42281] - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-02-12 07:17:42,564 - [42281] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912,12345678913,12345678914,12345678915,12345678916,12345678917,12345678918,12345678919); ... (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-02-12 07:17:43,377 - [42281] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:17:43,380 - [42281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:43,656 - [42281] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:17:43,657 - [42281] - src.utils.log - INFO - 19 Invoice Generated : [1369684, 1369685, 1369686, 1369687, 1369688, 1369689, 1369690, 1369691, 1369692, 1369693, 1369694, 1369695, 1369696, 1369697, 1369698, 1369699, 1369700, 1369701, 1369702] - __SPLIT__ 2026-02-12 07:17:43,657 - [42281] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1369703' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:43,934 - [42281] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:17:43,936 - [42281] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 19 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:44,222 - [42281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 19) into Billing.Invoice - __SPLIT__ 2026-02-12 07:17:45,383 - [42281] - src.utils.log - INFO - βœ… All 19 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-12 07:17:45,384 - [42281] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (3620122, 3540510, 3620123, 3540511, 3620124, 3540512, 3620125, 3540513, 3620126, 3540514, 3620127, 3540515, 3620128, 3540516, 3620129, 3540517, 3620130, 3540518, 3620131);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:45,661 - [42281] - src.utils.log - INFO - βœ… Fetched 19 rows - __SPLIT__ 2026-02-12 07:17:45,663 - [42281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (442204, 442205, 442206, 442207, 442208, 442209, 442210, 442211, 442212, 442213);... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-02-12 07:17:45,664 - [42281] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (442204, 442205, 442206, 442207, 442208, 442209, 442210, 442211, 442212, 442213);... (Thread: ThreadPoolExecutor-3_1) - __SPLIT__ 2026-02-12 07:17:45,962 - [42281] - src.utils.log - INFO - βœ… Fetched 20 rows - __SPLIT__ 2026-02-12 07:17:46,719 - [42281] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:17:46,722 - [42281] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 38 rows in batches of 25000 (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-02-12 07:17:46,723 - [42281] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-4_2) - __SPLIT__ 2026-02-12 07:17:46,723 - [42281] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-4_1) - __SPLIT__ 2026-02-12 07:17:46,985 - [42281] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into Billing.DiscountApplied in 0 batches - __SPLIT__ 2026-02-12 07:17:47,006 - [42281] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 38) into Billing.InvoiceCharges - __SPLIT__ 2026-02-12 07:17:47,833 - [42281] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into Billing.AccountDiscountSetup in 0 batches - __SPLIT__ 2026-02-12 07:17:48,300 - [42281] - src.utils.log - INFO - βœ… All 38 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-12 07:17:48,301 - [42281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (442204, 442205, 442206, 442207, 442208, 442209, 442210, 442211, 442212, 442213) (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-02-12 07:17:48,301 - [42281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (442204, 442205, 442206, 442207, 442208, 442209, 442210, 442211, 442212, 442213) (Thread: ThreadPoolExecutor-5_1) - __SPLIT__ 2026-02-12 07:17:48,569 - [42281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:17:48,619 - [42281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:17:48,619 - [42281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (442204, 442205, 442206, 442207, 442208, 442209, 442210, 442211, 442212, 442213) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:49,041 - [42281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:17:49,041 - [42281] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (634119, 634120, 634121, 634122, 634123, 634124, 634125, 634126, 634127, 634128) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:49,339 - [42281] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:17:49,339 - [42281] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-12 02:17:37.696' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42281;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:17:49,620 - [42281] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:17:49,620 - [42281] - src.utils.log - INFO - Parallel invoice publish completed successfully - Time took: 13.93 - __SPLIT__ 2026-02-12 07:25:30,096 - 42282 - src.utils.log - INFO - ParallelProcessing=True GenerateInvoiceHistoryId=42282 - __SPLIT__ 2026-02-12 07:25:30,112 - 42282 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-12 07:25:30,112 - 42282 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:32,724 - 42282 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:25:32,725 - 42282 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:25:32,725 - 42282 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-12 07:25:32,726 - 42282 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-12 07:25:32,726 - 42282 - src.utils.log - INFO - Parallel Invoice generation algo started for GenerateInvoiceHistoryId: 42282 - __SPLIT__ 2026-02-12 07:25:32,726 - 42282 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42282;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:35,176 - 42282 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:25:35,176 - 42282 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42282;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:35,442 - 42282 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:25:35,443 - 42282 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '14599' and ss.ServiceSetupId = 149872;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:35,719 - 42282 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:25:35,724 - 42282 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-02-12 07:25:35,725 - 42282 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-12 07:25:35,725 - 42282 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14570... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:36,002 - 42282 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 07:25:36,003 - 42282 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-12 07:25:36,012 - 42282 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 149872 AND TransactionDate BETWEEN '2026-02-12 00:00:00' AND '2026-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:36,281 - 42282 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:25:36,290 - 42282 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, Inv.InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-02-12 00:00:00' AND '2026-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 149872;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:36,618 - 42282 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:25:36,627 - 42282 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:36,900 - 42282 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-02-12 07:25:37,842 - 42282 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-02-12 07:25:37,842 - 42282 - src.utils.log - INFO - - __SPLIT__ 2026-02-12 07:25:37,842 - 42282 - src.utils.log - INFO - Total invoice generated: 3 - __SPLIT__ 2026-02-12 07:25:37,843 - 42282 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 3 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-02-11 10:52:17.672' and ServiceSetupId = 149872 and GenerateWorkOrderHistoryId= 42282;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:38,113 - 42282 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-12 07:25:38,121 - 42282 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:38,393 - 42282 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-02-12 07:25:39,349 - 42282 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-02-12 07:25:39,350 - 42282 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (634129, 634130, 634131);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:39,620 - 42282 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-12 07:25:39,621 - 42282 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 149872 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:39,889 - 42282 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:25:39,902 - 42282 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149872;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:40,168 - 42282 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:25:40,175 - 42282 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 3 rows in batches of 25000 (Thread: ThreadPoolExecutor-0_0) - __SPLIT__ 2026-02-12 07:25:40,176 - 42282 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 6 rows in batches of 25000 (Thread: ThreadPoolExecutor-0_1) - __SPLIT__ 2026-02-12 07:25:40,447 - 42282 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-02-12 07:25:41,244 - 42282 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-02-12 07:25:41,382 - 42282 - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-02-12 07:25:42,181 - 42282 - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-02-12 07:25:42,182 - 42282 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42282;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:42,446 - 42282 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:25:42,447 - 42282 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-02-12 02:25:42.446' WHERE GenerateInvoiceHistoryId = 42282;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:42,711 - 42282 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:25:42,711 - 42282 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:25:42,711 - 42282 - src.utils.log - INFO - Parallel Invoice Gen Complete Successfully ProjectId:42282 - Time took: 12.61 - __SPLIT__ 2026-02-12 07:25:55,067 - [42282] - src.utils.log - INFO - ParallelProcessing=True temp_invoice=[634129, 634130, 634131] user_id=43135 company_id=133 project_id=[42282] publish_all=False - __SPLIT__ 2026-02-12 07:25:55,067 - [42282] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-02-12 07:25:55,068 - [42282] - src.utils.log - INFO - Parallel invoice publish in progress - __SPLIT__ 2026-02-12 07:25:55,069 - [42282] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-12 07:25:55,069 - [42282] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:57,105 - [42282] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:25:57,106 - [42282] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:25:57,106 - [42282] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-12 07:25:57,106 - [42282] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-12 07:25:57,107 - [42282] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-02-12 02:25:57.107' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42282;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:59,067 - [42282] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:25:59,067 - [42282] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId in (634129, 634130, 634131);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:59,354 - [42282] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-12 07:25:59,354 - [42282] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (634129, 634130, 634131);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:25:59,635 - [42282] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-12 07:25:59,637 - [42282] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:00,088 - [42282] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-12 07:26:01,070 - [42282] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-12 07:26:01,209 - [42282] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-12 07:26:01,209 - [42282] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911, 12345678912);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:01,711 - [42282] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-12 07:26:01,713 - [42282] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911,12345678912); ... (Thread: ThreadPoolExecutor-18_0) - __SPLIT__ 2026-02-12 07:26:02,232 - [42282] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:26:02,236 - [42282] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:02,515 - [42282] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:26:02,517 - [42282] - src.utils.log - INFO - 3 Invoice Generated : [1369703, 1369704, 1369705] - __SPLIT__ 2026-02-12 07:26:02,517 - [42282] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1369706' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:02,798 - [42282] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:26:02,800 - [42282] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 3 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:03,118 - [42282] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.Invoice - __SPLIT__ 2026-02-12 07:26:04,135 - [42282] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-12 07:26:04,136 - [42282] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (3620143, 3620144, 3620145);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:04,414 - [42282] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-12 07:26:04,417 - [42282] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (442214, 442215, 442216);... (Thread: ThreadPoolExecutor-19_0) - __SPLIT__ 2026-02-12 07:26:04,417 - [42282] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (442214, 442215, 442216);... (Thread: ThreadPoolExecutor-19_1) - __SPLIT__ 2026-02-12 07:26:04,711 - [42282] - src.utils.log - INFO - βœ… Fetched 6 rows - __SPLIT__ 2026-02-12 07:26:05,523 - [42282] - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-12 07:26:05,531 - [42282] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 6 rows in batches of 25000 (Thread: ThreadPoolExecutor-20_0) - __SPLIT__ 2026-02-12 07:26:05,531 - [42282] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 3 rows in batches of 25000 (Thread: ThreadPoolExecutor-20_1) - __SPLIT__ 2026-02-12 07:26:05,531 - [42282] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 3 rows in batches of 25000 (Thread: ThreadPoolExecutor-20_2) - __SPLIT__ 2026-02-12 07:26:05,834 - [42282] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.AccountDiscountSetup - __SPLIT__ 2026-02-12 07:26:05,845 - [42282] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 6) into Billing.InvoiceCharges - __SPLIT__ 2026-02-12 07:26:06,615 - [42282] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 3) into Billing.DiscountApplied - __SPLIT__ 2026-02-12 07:26:06,808 - [42282] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-02-12 07:26:06,836 - [42282] - src.utils.log - INFO - βœ… All 6 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-12 07:26:07,545 - [42282] - src.utils.log - INFO - βœ… All 3 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-02-12 07:26:07,546 - [42282] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (442214, 442215, 442216) (Thread: ThreadPoolExecutor-21_0) - __SPLIT__ 2026-02-12 07:26:07,546 - [42282] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (442214, 442215, 442216) (Thread: ThreadPoolExecutor-21_1) - __SPLIT__ 2026-02-12 07:26:07,828 - [42282] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:26:07,861 - [42282] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:26:07,861 - [42282] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (442214, 442215, 442216) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:08,176 - [42282] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:26:08,176 - [42282] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (634129, 634130, 634131) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:08,485 - [42282] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:26:08,485 - [42282] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-12 02:25:57.107' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42282;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:08,765 - [42282] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:26:08,766 - [42282] - src.utils.log - INFO - Parallel invoice publish completed successfully - Time took: 13.7 - __SPLIT__ 2026-02-12 07:26:47,409 - 42283 - src.utils.log - INFO - ParallelProcessing=True GenerateInvoiceHistoryId=42283 - __SPLIT__ 2026-02-12 07:26:47,410 - 42283 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-12 07:26:47,410 - 42283 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:49,408 - 42283 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:26:49,408 - 42283 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:26:49,409 - 42283 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-12 07:26:49,409 - 42283 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-12 07:26:49,409 - 42283 - src.utils.log - INFO - Parallel Invoice generation algo started for GenerateInvoiceHistoryId: 42283 - __SPLIT__ 2026-02-12 07:26:49,409 - 42283 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'InProgress' WHERE GenerateInvoiceHistoryId = 42283;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:51,396 - 42283 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:26:51,396 - 42283 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateInvoiceHistory WHERE GenerateInvoiceHistoryId = 42283;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:51,681 - 42283 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:26:51,682 - 42283 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceId as ServiceMasterId,ss.FrequencyScheduleId as setup_frequency_schedule_id, ssb.*, ss.IsBilling, ss.DepartmentMasterId, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, t.NetDueIn, ss.TaxPercent, ss.PoNumber, ss.DisplayServiceAsSeparateLineItem, ss.SetupEndDate, ss.SetupStartDate from ServiceCore.ServiceSetup ss join ServiceCore.ServiceSetupBilling ssb on ss.ServiceSetupId = ssb.ServiceSetupId join Billing.PaymentTypeMaster ptm on ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId join Billing.Term t on ss.TermId = t.TermId join ServiceCore.ServiceSetupServices sss on ss.ServiceSetupId = sss.ServiceSetupId where ptm.PaymentType= 'Payment Plan' and ss.IsActive =1 and ss.CompanyId= 133 AND ss.IsDeleted =0 AND ss.Status <> 'Canceled' and ss.AccountNumber = '14599' and ss.ServiceSetupId = 149872;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:51,977 - 42283 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:26:51,981 - 42283 - src.utils.log - INFO - No filter selected - __SPLIT__ 2026-02-12 07:26:51,982 - 42283 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-12 07:26:51,982 - 42283 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14570... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:52,278 - 42283 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 07:26:52,278 - 42283 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-12 07:26:52,286 - 42283 - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionAutoGenerationId FROM Billing.TransactionAutoGeneration WHERE ServiceSetupId = 149872 AND TransactionDate BETWEEN '2026-02-12 00:00:00' AND '2027-12-31 00:00:00' AND IsActive = 1 ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:52,575 - 42283 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:26:52,582 - 42283 - src.utils.log - INFO - πŸ” Fetching data: SELECT Inv.ServiceSetupId, Inv.InvoiceDate FROM Billing.Invoice Inv INNER JOIN Billing.[Transaction] T ON Inv.TransactionId = T.TransactionId WHERE Inv.InvoiceDate BETWEEN '2026-02-12 00:00:00' AND '2027-12-31 00:00:00' AND Inv.IsActive = 1 AND Inv.IsDelete = 0 AND T.IsActive = 1 AND T.IsDelete = 0 AND Inv.ServiceSetupId = 149872;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:52,888 - 42283 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-12 07:26:52,898 - 42283 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.TransactionAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:53,215 - 42283 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.TransactionAutoGeneration - __SPLIT__ 2026-02-12 07:26:54,220 - 42283 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.TransactionAutoGeneration in 1 batches - __SPLIT__ 2026-02-12 07:26:54,220 - 42283 - src.utils.log - INFO - - __SPLIT__ 2026-02-12 07:26:54,220 - 42283 - src.utils.log - INFO - Total invoice generated: 4 - __SPLIT__ 2026-02-12 07:26:54,220 - 42283 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 4 TransactionAutoGenerationId, ServiceSetupId, TransactionDate as InvoiceDate From Billing.TransactionAutoGeneration WHERE CreatedDate = '2026-02-11 10:52:17.923' and ServiceSetupId = 149872 and GenerateWorkOrderHistoryId= 42283;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:54,514 - 42283 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 07:26:54,521 - 42283 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGeneration: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:54,836 - 42283 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceAutoGeneration - __SPLIT__ 2026-02-12 07:26:55,838 - 42283 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceAutoGeneration in 1 batches - __SPLIT__ 2026-02-12 07:26:55,838 - 42283 - src.utils.log - INFO - πŸ” Fetching data: SELECT I.InvoiceAutoGenerationId, T.ServiceSetupId FROM Billing.InvoiceAutoGeneration I JOIN Billing.TransactionAutoGeneration T ON I.TransactionAutoGenerationId = T.TransactionAutoGenerationId where T.TransactionAutoGenerationId in (634132, 634133, 634134, 634135);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:56,127 - 42283 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 07:26:56,127 - 42283 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 149872 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:56,414 - 42283 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:26:56,426 - 42283 - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, DiscountSetupId,DiscountType,DiscountCode,DiscountAmount,DiscountDescription,DiscountName, DiscountPercent, IsDiscountPercent,AppliedDiscountAmt,ApplyOnPartPrice,ApplyOnLaborPrice from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149872;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:56,711 - 42283 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:26:56,718 - 42283 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceAutoGenerationAppliedDiscount: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-22_0) - __SPLIT__ 2026-02-12 07:26:56,719 - 42283 - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceChargesAutoGeneration: 8 rows in batches of 25000 (Thread: ThreadPoolExecutor-22_1) - __SPLIT__ 2026-02-12 07:26:57,036 - 42283 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceAutoGenerationAppliedDiscount - __SPLIT__ 2026-02-12 07:26:57,813 - 42283 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 8) into Billing.InvoiceChargesAutoGeneration - __SPLIT__ 2026-02-12 07:26:58,035 - 42283 - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-02-12 07:26:58,885 - 42283 - src.utils.log - INFO - βœ… All 8 rows inserted successfully into Billing.InvoiceChargesAutoGeneration in 1 batches - __SPLIT__ 2026-02-12 07:26:58,886 - 42283 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET Status = 'Completed' WHERE GenerateInvoiceHistoryId = 42283;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:59,168 - 42283 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:26:59,168 - 42283 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET InvoiceStatusDateTime = '2026-02-12 02:26:59.168' WHERE GenerateInvoiceHistoryId = 42283;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:26:59,436 - 42283 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:26:59,436 - 42283 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:26:59,436 - 42283 - src.utils.log - INFO - Parallel Invoice Gen Complete Successfully ProjectId:42283 - Time took: 12.03 - __SPLIT__ 2026-02-12 07:27:09,243 - [42283] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[634132] user_id=43135 company_id=133 project_id=[42283] publish_all=False - __SPLIT__ 2026-02-12 07:27:09,243 - [42283] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-02-12 07:27:09,244 - [42283] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-02-12 07:27:09,244 - [42283] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-12 07:27:09,245 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:11,354 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:27:11,354 - [42283] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:27:11,355 - [42283] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-12 07:27:11,355 - [42283] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-12 07:27:11,355 - [42283] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-02-12 02:27:11.355' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42283;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:13,271 - [42283] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:27:13,272 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 634132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:13,552 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:27:13,553 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 634132;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:13,829 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:27:13,831 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:14,247 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-12 07:27:15,287 - [42283] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-12 07:27:15,423 - [42283] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-12 07:27:15,423 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:15,830 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:27:15,833 - [42283] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-23_0) - __SPLIT__ 2026-02-12 07:27:16,254 - [42283] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:27:16,257 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:16,531 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:27:16,532 - [42283] - src.utils.log - INFO - 1 Invoice Generated : [1369706] - __SPLIT__ 2026-02-12 07:27:16,533 - [42283] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1369707' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:16,808 - [42283] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:27:16,810 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:17,093 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-02-12 07:27:18,081 - [42283] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-12 07:27:18,082 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 3620146;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:18,364 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:27:18,366 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 442217;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:18,672 - [42283] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:27:18,672 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 442217;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:18,953 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:27:18,959 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:19,248 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-02-12 07:27:20,222 - [42283] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-12 07:27:20,223 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:20,502 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.AccountDiscountSetup - __SPLIT__ 2026-02-12 07:27:21,466 - [42283] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-02-12 07:27:21,466 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:21,744 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.DiscountApplied - __SPLIT__ 2026-02-12 07:27:22,710 - [42283] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-02-12 07:27:22,711 - [42283] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 442217 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:22,991 - [42283] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:27:22,992 - [42283] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 442217 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:23,300 - [42283] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:27:23,300 - [42283] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 442217 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:23,593 - [42283] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:27:23,594 - [42283] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 634132 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:23,873 - [42283] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:27:23,874 - [42283] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-12 02:27:11.355' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42283;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:24,148 - [42283] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:27:24,149 - [42283] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 14.9 - __SPLIT__ 2026-02-12 07:27:55,576 - [42283] - src.utils.log - INFO - ParallelProcessing=True temp_invoice=[634134] user_id=43135 company_id=133 project_id=[42283] publish_all=False - __SPLIT__ 2026-02-12 07:27:55,577 - [42283] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-02-12 07:27:55,577 - [42283] - src.utils.log - INFO - Parallel invoice publish in progress - __SPLIT__ 2026-02-12 07:27:55,578 - [42283] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-12 07:27:55,578 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:57,634 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:27:57,635 - [42283] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:27:57,635 - [42283] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-12 07:27:57,636 - [42283] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-12 07:27:57,636 - [42283] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-02-12 02:27:57.636' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42283;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:59,461 - [42283] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:27:59,462 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGeneration i WHERE TransactionAutoGenerationId = 634134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:59,728 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:27:59,729 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId = 634134;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:27:59,990 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:27:59,992 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:00,389 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-12 07:28:01,306 - [42283] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-12 07:28:01,436 - [42283] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-12 07:28:01,437 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:01,831 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:28:01,834 - [42283] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910; ... (Thread: ThreadPoolExecutor-24_0) - __SPLIT__ 2026-02-12 07:28:02,231 - [42283] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:28:02,234 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:02,494 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:28:02,496 - [42283] - src.utils.log - INFO - 1 Invoice Generated : [1369707] - __SPLIT__ 2026-02-12 07:28:02,496 - [42283] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1369708' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:02,758 - [42283] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:28:02,760 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:03,031 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-02-12 07:28:03,964 - [42283] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-12 07:28:03,965 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId = 3620147;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:04,225 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:28:04,228 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId = 442219;... (Thread: ThreadPoolExecutor-25_0) - __SPLIT__ 2026-02-12 07:28:04,228 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId = 442219;... (Thread: ThreadPoolExecutor-25_1) - __SPLIT__ 2026-02-12 07:28:04,503 - [42283] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:28:05,277 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:28:05,284 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-26_0) - __SPLIT__ 2026-02-12 07:28:05,285 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 1 rows in batches of 25000 (Thread: ThreadPoolExecutor-26_1) - __SPLIT__ 2026-02-12 07:28:05,285 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 1 rows in batches of 25000 (Thread: ThreadPoolExecutor-26_2) - __SPLIT__ 2026-02-12 07:28:05,555 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-02-12 07:28:05,563 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.AccountDiscountSetup - __SPLIT__ 2026-02-12 07:28:06,337 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.DiscountApplied - __SPLIT__ 2026-02-12 07:28:06,481 - [42283] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-12 07:28:06,481 - [42283] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-02-12 07:28:07,254 - [42283] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-02-12 07:28:07,255 - [42283] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId = 442219 (Thread: ThreadPoolExecutor-27_0) - __SPLIT__ 2026-02-12 07:28:07,255 - [42283] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId = 442219 (Thread: ThreadPoolExecutor-27_1) - __SPLIT__ 2026-02-12 07:28:07,524 - [42283] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:28:07,549 - [42283] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:28:07,549 - [42283] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId = 442219 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:07,833 - [42283] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:28:07,834 - [42283] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId = 634134 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:08,099 - [42283] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:28:08,100 - [42283] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-12 02:27:57.636' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42283;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:08,362 - [42283] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:28:08,362 - [42283] - src.utils.log - INFO - Parallel invoice publish completed successfully - Time took: 12.78 - __SPLIT__ 2026-02-12 07:28:26,984 - [42283] - src.utils.log - INFO - ParallelProcessing=False temp_invoice=[] user_id=43135 company_id=133 project_id=[42283] publish_all=True - __SPLIT__ 2026-02-12 07:28:26,984 - [42283] - src.utils.log - INFO - Invoice Published Successfully - __SPLIT__ 2026-02-12 07:28:26,985 - [42283] - src.utils.log - INFO - Sequential invoice publish in progress - __SPLIT__ 2026-02-12 07:28:26,985 - [42283] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-12 07:28:26,985 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:28,978 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:28:28,978 - [42283] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:28:28,978 - [42283] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-12 07:28:28,979 - [42283] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-12 07:28:28,979 - [42283] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'InProgress', InvoicePublishStartDateTime = '2026-02-12 02:28:28.979' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42283;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:30,894 - [42283] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:28:30,895 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT i.* FROM Billing.InvoiceAutoGeneration i join Billing.TransactionAutoGeneration t on i.TransactionAutoGenerationId = t.TransactionAutoGenerationId WHERE t.GenerateWorkOrderHistoryId = 42283; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:31,187 - [42283] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:28:31,188 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.TransactionAutoGeneration tag WHERE tag.TransactionAutoGenerationId in (634133, 634135);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:31,463 - [42283] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:28:31,465 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:31,881 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-12 07:28:32,847 - [42283] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-12 07:28:32,983 - [42283] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-12 07:28:32,984 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy from Billing.[Transaction] t WHERE t.ModifiedBy in (12345678910, 12345678911);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:33,492 - [42283] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:28:33,495 - [42283] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy IN (12345678910,12345678911); ... (Thread: ThreadPoolExecutor-28_0) - __SPLIT__ 2026-02-12 07:28:33,975 - [42283] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:28:33,978 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:34,252 - [42283] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:28:34,253 - [42283] - src.utils.log - INFO - 2 Invoice Generated : [1369708, 1369709] - __SPLIT__ 2026-02-12 07:28:34,254 - [42283] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1369710' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:34,528 - [42283] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:28:34,530 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:34,813 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.Invoice - __SPLIT__ 2026-02-12 07:28:35,812 - [42283] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-12 07:28:35,812 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, InvoiceId FROM Billing.Invoice WHERE TransactionId in (3620148, 3620149);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:36,086 - [42283] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:28:36,088 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceChargesAutoGeneration icag WHERE InvoiceAutoGenerationId in (442218, 442220);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:36,378 - [42283] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 07:28:36,379 - [42283] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Billing.InvoiceAutoGenerationAppliedDiscount iagad WHERE InvoiceAutoGenerationId in (442218, 442220);... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:36,759 - [42283] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:28:36,765 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 4 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:37,047 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into Billing.InvoiceCharges - __SPLIT__ 2026-02-12 07:28:38,042 - [42283] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-12 07:28:38,042 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:38,323 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.AccountDiscountSetup - __SPLIT__ 2026-02-12 07:28:39,293 - [42283] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-02-12 07:28:39,293 - [42283] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:39,571 - [42283] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.DiscountApplied - __SPLIT__ 2026-02-12 07:28:40,537 - [42283] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-02-12 07:28:40,537 - [42283] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGenerationAppliedDiscount WHERE InvoiceAutoGenerationId in (442218, 442220) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:40,818 - [42283] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:28:40,819 - [42283] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceChargesAutoGeneration WHERE InvoiceAutoGenerationId in (442218, 442220) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:41,127 - [42283] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:28:41,127 - [42283] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.InvoiceAutoGeneration WHERE InvoiceAutoGenerationId in (442218, 442220) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:41,439 - [42283] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:28:41,439 - [42283] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: delete FROM Billing.TransactionAutoGeneration WHERE TransactionAutoGenerationId in (634133, 634135) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:41,723 - [42283] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:28:41,724 - [42283] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateInvoiceHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-12 02:28:28.979' WHERE CompanyId = 133 AND GenerateInvoiceHistoryId = 42283;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:28:41,998 - [42283] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:28:41,998 - [42283] - src.utils.log - INFO - Sequential invoice publish completed successfully - Time took: 15.01 - __SPLIT__ 2026-02-12 07:43:09,904 - 123965 - src.utils.log - INFO - ParallelProcessing=True GenerateWorkOrderHistoryId=123965 - __SPLIT__ 2026-02-12 07:43:09,904 - 123965 - src.utils.log - INFO - Parallel Work order generation algo started for GenerateWorkOrderHistoryId: 123965 - __SPLIT__ 2026-02-12 07:43:09,905 - 123965 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-12 07:43:09,905 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas' ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:11,943 - 123965 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:43:11,944 - 123965 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:43:11,944 - 123965 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-12 07:43:11,944 - 123965 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-12 07:43:11,944 - 123965 - src.utils.log - INFO - βœ… Connected to company-specific database: abcdallas - __SPLIT__ 2026-02-12 07:43:11,944 - 123965 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 123965;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:13,862 - 123965 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:43:13,862 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123965), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123965), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 123965 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:14,225 - 123965 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:43:14,226 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 123965;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:14,502 - 123965 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:43:14,505 - 123965 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-12 07:43:14,505 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 13962... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:14,791 - 123965 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:43:14,791 - 123965 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-12 07:43:14,794 - 123965 - src.utils.log - INFO - πŸ“Š Found 1 setups to process across 1 routes - __SPLIT__ 2026-02-12 07:43:14,794 - 123965 - src.utils.log - INFO - πŸš€ Starting parallel processing with 8 workers - __SPLIT__ 2026-02-12 07:43:14,795 - 123965 - src.utils.log - INFO - Generating Sequentially as less then one route given - __SPLIT__ 2026-02-12 07:43:14,795 - 123965 - src.utils.log - INFO - πŸ”„ Processing route: 1 with 1 setups - __SPLIT__ 2026-02-12 07:43:14,795 - 123965 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-12 07:43:14,796 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:15,072 - 123965 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:43:15,073 - 123965 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-12 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 149873 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:15,363 - 123965 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:43:15,934 - 123965 - src.utils.log - INFO - Generating work orders for setup: 149873 - __SPLIT__ 2026-02-12 07:43:16,100 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11436;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:16,374 - 123965 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:43:16,382 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:16,656 - 123965 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:43:16,703 - 123965 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-12 07:43:16,724 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:16,998 - 123965 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:43:17,003 - 123965 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-12 07:43:17,003 - 123965 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-12 07:43:17,003 - 123965 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149873 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:17,301 - 123965 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:43:17,302 - 123965 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149873 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:17,587 - 123965 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:43:17,587 - 123965 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149873 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:17,866 - 123965 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:43:17,866 - 123965 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149873 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:18,153 - 123965 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:43:18,153 - 123965 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149873 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:18,446 - 123965 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:43:18,446 - 123965 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149873 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:18,726 - 123965 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:43:18,726 - 123965 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149873 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:19,005 - 123965 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:43:19,005 - 123965 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149873 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:19,299 - 123965 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:43:19,300 - 123965 - src.utils.log - INFO - πŸ“ Inserting 10 work orders for route: 1 - __SPLIT__ 2026-02-12 07:43:19,300 - 123965 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:19,633 - 123965 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-12 07:43:21,091 - 123965 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-12 07:43:21,091 - 123965 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 10 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-11 16:22:17.907' and ServiceSetupId = 149873... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:21,382 - 123965 - src.utils.log - INFO - βœ… Fetched 10 rows - __SPLIT__ 2026-02-12 07:43:21,383 - 123965 - src.utils.log - INFO - βœ… Work order IDs inserted for route 1: 10 records - __SPLIT__ 2026-02-12 07:43:21,383 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:21,657 - 123965 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:43:21,657 - 123965 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-12 07:43:21,658 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149873... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:21,934 - 123965 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:43:21,934 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149873... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:22,210 - 123965 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:43:22,217 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149873... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:22,502 - 123965 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 07:43:22,503 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149873... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:22,779 - 123965 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 07:43:22,780 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149873... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:23,056 - 123965 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:43:23,056 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:23,332 - 123965 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:43:23,333 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:23,607 - 123965 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:43:23,608 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:23,918 - 123965 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:43:23,918 - 123965 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:24,194 - 123965 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:43:24,220 - 123965 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-12 07:43:24,220 - 123965 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:24,516 - 123965 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-12 07:43:24,516 - 123965 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-12 07:43:24,517 - 123965 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:24,816 - 123965 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-12 07:43:24,816 - 123965 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-12 07:43:24,817 - 123965 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:25,119 - 123965 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.SetupAutoGenerationSourceMapping - __SPLIT__ 2026-02-12 07:43:25,947 - 123965 - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 1 batches - __SPLIT__ 2026-02-12 07:43:25,947 - 123965 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-12 07:43:25,947 - 123965 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 10 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:26,258 - 123965 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 10) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-02-12 07:43:27,232 - 123965 - src.utils.log - INFO - βœ… All 10 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-02-12 07:43:27,232 - 123965 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-12 07:43:27,232 - 123965 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:27,532 - 123965 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-12 07:43:27,532 - 123965 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-12 07:43:27,533 - 123965 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:27,832 - 123965 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-12 07:43:27,833 - 123965 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-12 07:43:27,833 - 123965 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:28,137 - 123965 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-02-12 07:43:29,131 - 123965 - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-02-12 07:43:29,131 - 123965 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-12 07:43:29,131 - 123965 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 20 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:29,433 - 123965 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 20) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-12 07:43:30,422 - 123965 - src.utils.log - INFO - βœ… All 20 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-12 07:43:30,423 - 123965 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-12 07:43:30,423 - 123965 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:30,730 - 123965 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-12 07:43:31,704 - 123965 - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-12 07:43:31,704 - 123965 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-12 07:43:31,704 - 123965 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 18 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:31,985 - 123965 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 18) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-12 07:43:32,972 - 123965 - src.utils.log - INFO - βœ… All 18 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-12 07:43:32,973 - 123965 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-12 07:43:32,973 - 123965 - src.utils.log - INFO - βœ… Temp tables populated for route: 1 - __SPLIT__ 2026-02-12 07:43:32,973 - 123965 - src.utils.log - INFO - βœ… Route 1 generation complete - __SPLIT__ 2026-02-12 07:43:32,973 - 123965 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123965;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:33,247 - 123965 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:43:33,247 - 123965 - src.utils.log - INFO - ⏱️ Total time: 23.34s | Status: Completed - __SPLIT__ 2026-02-12 07:43:33,247 - 123965 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123965;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:33,520 - 123965 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:43:33,520 - 123965 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-12 02:43:33.520' WHERE GenerateWorkOrderHistoryId = 123965;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:43:33,796 - 123965 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:43:33,796 - 123965 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:44:08,367 - [123965] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[3179144, 3179145] user_id=43135 company_id=133 project_id=[123965] publish_all=False - __SPLIT__ 2026-02-12 07:44:08,368 - [123965] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[3179144, 3179145] user_id=43135 company_id=133 project_id=[123965] publish_all=False - __SPLIT__ 2026-02-12 07:44:08,369 - [123965] - src.utils.log - INFO - Parallel Work order publish in progress for GenerateWorkOrderHistoryId: [123965] - __SPLIT__ 2026-02-12 07:44:08,369 - [123965] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-12 07:44:08,369 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:10,380 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:44:10,381 - [123965] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 07:44:10,381 - [123965] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-12 07:44:10,382 - [123965] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-12 07:44:10,382 - [123965] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 123965;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:12,285 - [123965] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:44:12,286 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3179144, 3179145)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:12,562 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:44:12,563 - [123965] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-12 07:44:12,563 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149873 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:12,847 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:44:12,847 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149873 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:13,129 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:44:13,129 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149873 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:13,416 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:44:13,420 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:13,693 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:44:13,693 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:13,966 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:44:13,968 - [123965] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1312326' WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:14,240 - [123965] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:44:14,240 - [123965] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1369712' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:14,513 - [123965] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:44:14,517 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 149873... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:14,795 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:44:14,802 - [123965] - src.utils.log - INFO - Size of Transaction: 1 - __SPLIT__ 2026-02-12 07:44:14,803 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Transaction (skip triggers): 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:15,216 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Transaction (triggers skipped) - __SPLIT__ 2026-02-12 07:44:16,175 - [123965] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Transaction in 1 batches (triggers skipped) - __SPLIT__ 2026-02-12 07:44:16,311 - [123965] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-12 07:44:16,311 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT TransactionId, ModifiedBy, TransactionDate as InvoiceDate from Billing.[Transaction] t WHERE t.ModifiedBy = 12345678910 and t.CompanyId = 133 AND t.TransactionType ='Invoice' AND t.CreatedDate = '2026-02-12 02:44:14.798';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:16,704 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:44:16,706 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:16,978 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:44:16,986 - [123965] - src.utils.log - INFO - πŸ“ Executing: UPDATE Billing.[Transaction] SET ModifiedBy = NULL WHERE ModifiedBy = 12345678910 AND CreatedDate = '2026-02-12 02:44:14.798'; ... (Thread: ThreadPoolExecutor-1_0) - __SPLIT__ 2026-02-12 07:44:17,390 - [123965] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:44:17,394 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.Invoice: 1 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:17,675 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.Invoice - __SPLIT__ 2026-02-12 07:44:18,699 - [123965] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.Invoice in 1 batches - __SPLIT__ 2026-02-12 07:44:18,699 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT InvoiceId, WorkOrderNo FROM Billing.Invoice i WHERE i.WorkOrderNo = '1312324'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:19,021 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:44:19,031 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 149873 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:19,308 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:44:19,308 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.Name as NonStandardServiceName, sm.Description , sm.ServiceMasterId as ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.ServiceMaster sm on sm.ServiceMasterId = sss.ServiceId where ServiceSetupId = 149873 and sm.IsActive =1 and sss.IsDeleted =0;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:19,584 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:44:19,585 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 149873 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:19,860 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:44:19,860 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, sss.NonStdSoldServiceId as SoldServiceNonStandardId, sss.Qty as Quantity, sss.Price as Rate, sss.IsTaxable, sm.servicename as NonStandardServiceName, sm.Description , sss.ServiceId FROM ServiceCore.ServiceSetupInitialServices sss join ServiceCore.SoldServiceNonStandard sm on sm.SoldServiceNonStandardId = sss.NonStdSoldServiceId where ServiceSetupId = 149873 and sss.IsDeleted =0; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:20,135 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:44:20,143 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT fm.YearlyOccurrence, fs.FrequencyScheduleId From ServiceCore.FrequencySchedule fs join ServiceCore.FrequencyMaster fm on fs.FrequencyId = fm.FrequencyId where fs.FrequencyScheduleId = 13962;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:20,417 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:44:20,418 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT fm.YearlyOccurrence, fs.FrequencyScheduleId From ServiceCore.FrequencySchedule fs join ServiceCore.FrequencyMaster fm on fs.FrequencyId = fm.FrequencyId where fs.FrequencyScheduleId = 13962;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:20,690 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:44:20,696 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:20,968 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:44:20,973 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId, AppliedDiscountAmt as AppliedDiscountAmount,IsActive ,ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:21,247 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:44:21,258 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInitialSetupDiscount as IsInitial, DiscountSetupId,IsActive,DiscountAmount, IsDiscountPercent,DiscountPercent,DiscountDescription , ServiceSetupId from ServiceCore.ServiceSetupAppliedDiscount ssad WHERE ssad.ServiceSetupId = 149873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:21,532 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:44:21,540 - [123965] - src.utils.log - INFO - Parallel Insertion in invoice tables begin - __SPLIT__ 2026-02-12 07:44:21,540 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.AccountDiscountSetup: 1 rows in batches of 25000 (Thread: ThreadPoolExecutor-2_0) - __SPLIT__ 2026-02-12 07:44:21,541 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.InvoiceCharges: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-2_1) - __SPLIT__ 2026-02-12 07:44:21,541 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into Billing.DiscountApplied: 1 rows in batches of 25000 (Thread: ThreadPoolExecutor-2_2) - __SPLIT__ 2026-02-12 07:44:21,822 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.AccountDiscountSetup - __SPLIT__ 2026-02-12 07:44:22,597 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 1) into Billing.DiscountApplied - __SPLIT__ 2026-02-12 07:44:22,652 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into Billing.InvoiceCharges - __SPLIT__ 2026-02-12 07:44:22,777 - [123965] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.AccountDiscountSetup in 1 batches - __SPLIT__ 2026-02-12 07:44:22,778 - [123965] - src.utils.log - INFO - Insert success for table: Billing.AccountDiscountSetup - __SPLIT__ 2026-02-12 07:44:23,528 - [123965] - src.utils.log - INFO - βœ… All 1 rows inserted successfully into Billing.DiscountApplied in 1 batches - __SPLIT__ 2026-02-12 07:44:23,528 - [123965] - src.utils.log - INFO - Insert success for table: Billing.DiscountApplied - __SPLIT__ 2026-02-12 07:44:23,627 - [123965] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into Billing.InvoiceCharges in 1 batches - __SPLIT__ 2026-02-12 07:44:23,627 - [123965] - src.utils.log - INFO - Insert success for table: Billing.InvoiceCharges - __SPLIT__ 2026-02-12 07:44:23,627 - [123965] - src.utils.log - INFO - Invoice Publish Done - __SPLIT__ 2026-02-12 07:44:23,629 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:23,901 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:44:23,902 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14599' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:24,165 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:44:24,167 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:24,635 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-12 07:44:25,812 - [123965] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-12 07:44:25,948 - [123965] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-12 07:44:25,950 - [123965] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.ServiceSetup SET IsInitialWoGenerated = 1 WHERE CompanyId = 133 AND ServiceSetupId = 149873;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:26,226 - [123965] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 07:44:26,227 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1312324', '1312325') AND wo.AccountNumber = '14599' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-3_0) - __SPLIT__ 2026-02-12 07:44:26,501 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:44:26,501 - [123965] - src.utils.log - INFO - Parallel fetching temp table records - __SPLIT__ 2026-02-12 07:44:26,502 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3179144, 3179145)... (Thread: ThreadPoolExecutor-4_0) - __SPLIT__ 2026-02-12 07:44:26,502 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3179144, 3179145)... (Thread: ThreadPoolExecutor-4_1) - __SPLIT__ 2026-02-12 07:44:26,503 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3179144, 3179145)... (Thread: ThreadPoolExecutor-4_2) - __SPLIT__ 2026-02-12 07:44:26,503 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3179144, 3179145)... (Thread: ThreadPoolExecutor-4_3) - __SPLIT__ 2026-02-12 07:44:26,503 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3179144, 3179145)... (Thread: ThreadPoolExecutor-4_4) - __SPLIT__ 2026-02-12 07:44:26,504 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId in (3179144, 3179145)... (Thread: ThreadPoolExecutor-4_5) - __SPLIT__ 2026-02-12 07:44:26,504 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3179144, 3179145) and woag.RefType = 'TempWorkorder';... (Thread: ThreadPoolExecutor-4_6) - __SPLIT__ 2026-02-12 07:44:26,505 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3179144, 3179145);... (Thread: ThreadPoolExecutor-4_7) - __SPLIT__ 2026-02-12 07:44:26,772 - [123965] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 07:44:26,782 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:44:26,786 - [123965] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 07:44:27,559 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:44:27,567 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:44:27,567 - [123965] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 07:44:27,586 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:44:27,597 - [123965] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 07:44:27,600 - [123965] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-12 07:44:27,624 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:27,889 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:44:27,892 - [123965] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId IN (643, 640) AND CompanyId = 133 AND IsActive = 1;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:28,169 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:44:28,172 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:28,446 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 07:44:28,450 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:28,762 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-12 07:44:29,717 - [123965] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-12 07:44:29,718 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149873 AND WorkOrderNo IN ('848071', '3737481') AND GenerateWorkOrderHistoryId = 123965;... (Thread: ThreadPoolExecutor-5_0) - __SPLIT__ 2026-02-12 07:44:30,017 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 07:44:30,018 - [123965] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-02-12 07:44:30,023 - [123965] - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-02-12 07:44:30,024 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-02-12 07:44:30,024 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-6_1) - __SPLIT__ 2026-02-12 07:44:30,024 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-6_2) - __SPLIT__ 2026-02-12 07:44:30,025 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-6_3) - __SPLIT__ 2026-02-12 07:44:30,025 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-6_4) - __SPLIT__ 2026-02-12 07:44:30,026 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-6_5) - __SPLIT__ 2026-02-12 07:44:30,026 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-6_6) - __SPLIT__ 2026-02-12 07:44:30,026 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-6_7) - __SPLIT__ 2026-02-12 07:44:30,027 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-6_8) - __SPLIT__ 2026-02-12 07:44:30,292 - [123965] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-12 07:44:30,293 - [123965] - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-02-12 07:44:30,323 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-02-12 07:44:30,328 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkorderSourceMapping - __SPLIT__ 2026-02-12 07:44:30,336 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-12 07:44:30,338 - [123965] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-12 07:44:30,341 - [123965] - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-02-12 07:44:30,346 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-12 07:44:30,349 - [123965] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-12 07:44:30,350 - [123965] - src.utils.log - INFO - [OK] Sub WO completed. - __SPLIT__ 2026-02-12 07:44:30,356 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-02-12 07:44:31,111 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-12 07:44:31,137 - [123965] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 1 batches - __SPLIT__ 2026-02-12 07:44:31,138 - [123965] - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-02-12 07:44:31,265 - [123965] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-02-12 07:44:31,265 - [123965] - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-02-12 07:44:31,279 - [123965] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-12 07:44:31,280 - [123965] - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-02-12 07:44:31,309 - [123965] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-12 07:44:31,310 - [123965] - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-02-12 07:44:31,323 - [123965] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-02-12 07:44:31,323 - [123965] - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-02-12 07:44:32,049 - [123965] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-12 07:44:32,050 - [123965] - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-02-12 07:44:32,051 - [123965] - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-02-12 07:44:32,051 - [123965] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-12 07:44:32,051 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 123965 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:32,316 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 07:44:32,322 - [123965] - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-02-12 07:44:32,454 - [123965] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_e8ca0ebf6f - __SPLIT__ 2026-02-12 07:44:32,586 - [123965] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_e8ca0ebf6f - __SPLIT__ 2026-02-12 07:44:33,109 - [123965] - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-02-12 07:44:33,378 - [123965] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-12 07:44:33,378 - [123965] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_e8ca0ebf6f - __SPLIT__ 2026-02-12 07:44:33,379 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 123965 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:33,654 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:44:33,654 - [123965] - src.utils.log - INFO - Parallel deletion from temp tables begin - __SPLIT__ 2026-02-12 07:44:33,655 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3179144, 3179145) (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-02-12 07:44:33,655 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3179144, 3179145) (Thread: ThreadPoolExecutor-8_1) - __SPLIT__ 2026-02-12 07:44:33,655 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3179144, 3179145) (Thread: ThreadPoolExecutor-8_2) - __SPLIT__ 2026-02-12 07:44:33,656 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3179144, 3179145) (Thread: ThreadPoolExecutor-8_3) - __SPLIT__ 2026-02-12 07:44:33,656 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3179144, 3179145) (Thread: ThreadPoolExecutor-8_4) - __SPLIT__ 2026-02-12 07:44:33,656 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3179144, 3179145) (Thread: ThreadPoolExecutor-8_5) - __SPLIT__ 2026-02-12 07:44:33,657 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3179144, 3179145) (Thread: ThreadPoolExecutor-8_6) - __SPLIT__ 2026-02-12 07:44:33,919 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:44:33,919 - [123965] - src.utils.log - INFO - [OK] Deleted from SubWorkOrder - __SPLIT__ 2026-02-12 07:44:33,920 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:44:33,920 - [123965] - src.utils.log - INFO - [OK] Deleted from SalesPersonCommission - __SPLIT__ 2026-02-12 07:44:33,924 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:44:33,924 - [123965] - src.utils.log - INFO - [OK] Deleted from Adjustment - __SPLIT__ 2026-02-12 07:44:33,935 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:44:33,936 - [123965] - src.utils.log - INFO - [OK] Deleted from Crews - __SPLIT__ 2026-02-12 07:44:33,939 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:44:33,939 - [123965] - src.utils.log - INFO - [OK] Deleted from SourceMapping - __SPLIT__ 2026-02-12 07:44:33,948 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:44:33,948 - [123965] - src.utils.log - INFO - [OK] Deleted from Services - __SPLIT__ 2026-02-12 07:44:33,980 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:44:33,981 - [123965] - src.utils.log - INFO - [OK] Deleted from AppliedDiscount - __SPLIT__ 2026-02-12 07:44:33,981 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3179144, 3179145) (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-02-12 07:44:34,269 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 07:44:34,270 - [123965] - src.utils.log - INFO - βœ” Completed batch of 2 records - __SPLIT__ 2026-02-12 07:44:34,270 - [123965] - src.utils.log - INFO - πŸŽ‰ All batches processed. - __SPLIT__ 2026-02-12 07:44:34,270 - [123965] - src.utils.log - INFO - Work order published ids: (3179144, 3179145) - __SPLIT__ 2026-02-12 07:44:34,270 - [123965] - src.utils.log - INFO - Time took to perform operation in publishing [123965]: 25.9 - __SPLIT__ 2026-02-12 07:44:34,270 - [123965] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [123965] - __SPLIT__ 2026-02-12 07:44:34,270 - [123965] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-12 02:44:34.270' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 123965;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 07:44:34,550 - [123965] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 09:49:04,226 - [123965] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[3179146, 3179147] user_id=43135 company_id=133 project_id=[123965] publish_all=False - __SPLIT__ 2026-02-12 09:49:04,227 - [123965] - src.utils.log - INFO - ParallelProcessing=True temp_wo=[3179146, 3179147] user_id=43135 company_id=133 project_id=[123965] publish_all=False - __SPLIT__ 2026-02-12 09:49:04,227 - [123965] - src.utils.log - INFO - Parallel Work order publish in progress for GenerateWorkOrderHistoryId: [123965] - __SPLIT__ 2026-02-12 09:49:04,227 - [123965] - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-12 09:49:04,227 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas'... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:06,443 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 09:49:06,444 - [123965] - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-12 09:49:06,444 - [123965] - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-12 09:49:06,444 - [123965] - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-12 09:49:06,444 - [123965] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'InProgress' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 123965;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:08,290 - [123965] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 09:49:08,290 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3179146, 3179147)... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:08,559 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 09:49:08,559 - [123965] - src.utils.log - INFO - Inside get_work_order_table - __SPLIT__ 2026-02-12 09:49:08,560 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT DISTINCT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.ServiceCategoryMaster c ON c.DepartmentId = dm.DepartmentMasterId JOIN ServiceCore.ServiceMaster sm ON c.CategoryId = sm.CategoryId JOIN ServiceCore.ServiceSetupServices sss ON sss.ServiceId = sm.ServiceMasterId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149873 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:08,823 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 09:49:08,823 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId JOIN ServiceCore.SoldServiceNonStandard x on dm.DepartmentMasterId = x.DepartmentId JOIN ServiceCore.ServiceSetupServices sss ON sss.NonStdSoldServiceId = x.SoldServiceNonStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149873 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:09,086 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 09:49:09,087 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.ServiceSetupId, dm.DepartmentMasterId, bm.BranchMasterId FROM Common.DepartmentMaster dm Inner JOIN Common.DivisionMaster d2 ON dm.DivisionMasterId = d2.DivisionMasterId Inner JOIN Common.BranchMaster bm ON d2.BranchMasterId = bm.BranchMasterId Inner JOIN [ServiceCore].[ServiceCategoryMaster] scm ON dm.DepartmentMasterId = scm.DepartmentId Inner JOIN ServiceCore.ServiceMaster sm ON scm.CategoryId = sm.CategoryId Inner JOIN ServiceCore.SoldServiceStandard x on x.ServiceId = sm.ServiceMasterId Inner JOIN ServiceCore.ServiceSetupServices sss ON sss.StdSoldServiceId = x.SoldServiceStandardId WHERE dm.CompanyId = 133 AND d2.CompanyId = bm.CompanyId AND sss.ServiceSetupId = 149873 AND sss.IsPrimary = 1; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:09,349 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 09:49:09,353 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder','Invoice'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:09,617 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 09:49:09,617 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT IsInvoiceSameAsWorkorder,BillingIsCreateInvoice FROM Common.CompanyConfiguration cc WHERE cc.CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:09,885 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 09:49:09,886 - [123965] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1312348' WHERE CompanyId = 133 AND EnitityNumberType in ('WorkOrder');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:10,156 - [123965] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 09:49:10,156 - [123965] - src.utils.log - INFO - πŸ“ Executing: UPDATE Common.GenerateNumberConfig SET NextNumber = '1369734' WHERE CompanyId = 133 AND EnitityNumberType in ('Invoice');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:10,428 - [123965] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-12 09:49:10,432 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT ss.ServiceSetupId as SetupId, ss.FrequencyScheduleId as setup_frequency_schedule_id, ss.AccountNumber, ss.CompanyId, ss.BillingLocationId, ss.ServiceLocationId, ss.TaxSysName, ss.TermId, ss.TaxPercent, ss.PoNumber, ss.IsTaxExempt, ss.DisplayServiceAsSeparateLineItem, ss.GenerateInvoice, ss.IsGenerateInvoiceforInitalSetup, ss.IsGenerateInvoiceforInitalSetupBilling, ss.IsBilling, t.NetDueIn, ptm.PaymentType, ssb.* FROM ServiceCore.ServiceSetup ss LEFT JOIN ServiceCore.ServiceSetupBilling ssb ON ss.ServiceSetupId = ssb.ServiceSetupId LEFT JOIN Billing.PaymentTypeMaster ptm ON ptm.PaymentTypeMasterId = ssb.PaymentTypeMasterId left join Billing.Term t on ss.TermId = t.TermId WHERE ss.ServiceSetupId = 149873... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:10,699 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 09:49:10,706 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT x.CompanyId FROM CRM.CompanyMaster x WHERE CompanyKey = 'abcdallas';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:10,970 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 09:49:10,970 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT CollectionStatus,IsHold,AccountNo FROM CRM.Account a WHERE a.AccountNo = '14599' and a.CompanyId = 121;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:11,233 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 09:49:11,235 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrder (skip triggers): 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:11,664 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrder (triggers skipped) - __SPLIT__ 2026-02-12 09:49:12,656 - [123965] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrder in 1 batches (triggers skipped) - __SPLIT__ 2026-02-12 09:49:12,787 - [123965] - src.utils.log - INFO - πŸ”„ Triggers re-enabled for session - __SPLIT__ 2026-02-12 09:49:12,789 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkorderId, WorkOrderNo FROM ServiceCore.WorkOrder wo WHERE wo.WorkOrderNo IN ('1312346', '1312347') AND wo.AccountNumber = '14599' AND wo.CompanyId = 133 ... (Thread: ThreadPoolExecutor-6_0) - __SPLIT__ 2026-02-12 09:49:13,065 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 09:49:13,066 - [123965] - src.utils.log - INFO - Parallel fetching temp table records - __SPLIT__ 2026-02-12 09:49:13,066 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationServices woag WHERE woag.WorkOrderAutoGenerationId in (3179146, 3179147)... (Thread: ThreadPoolExecutor-7_0) - __SPLIT__ 2026-02-12 09:49:13,066 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SubWorkOrderAutoGeneration woag WHERE woag.WorkOrderAutoGenerationId in (3179146, 3179147)... (Thread: ThreadPoolExecutor-7_1) - __SPLIT__ 2026-02-12 09:49:13,067 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationCrews woag WHERE woag.WorkOrderAutoGenerationId in (3179146, 3179147)... (Thread: ThreadPoolExecutor-7_2) - __SPLIT__ 2026-02-12 09:49:13,067 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.WorkOrderAutoGenerationSalesPersonCommission woag WHERE woag.WorkOrderAutoGenerationId in (3179146, 3179147)... (Thread: ThreadPoolExecutor-7_3) - __SPLIT__ 2026-02-12 09:49:13,068 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupAutoGenerationSourceMapping woag WHERE woag.WorkOrderAutoGenerationId in (3179146, 3179147)... (Thread: ThreadPoolExecutor-7_4) - __SPLIT__ 2026-02-12 09:49:13,069 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT DiscountType, DiscountCode, DiscountAmount, DiscountDescription, DiscountName, IsActive, CreatedBy, ModifiedBy, CreatedDate, ModifiedDate, DiscountPercent, IsDiscountPercent, AppliedDiscountAmt, ApplyOnPartPrice, ApplyOnLaborPrice, DiscountSetupId, WorkOrderAutoGenerationId from ServiceCore.WorkOrderAutoGenerationAppliedDiscount woag WHERE woag.WorkOrderAutoGenerationId in (3179146, 3179147)... (Thread: ThreadPoolExecutor-7_5) - __SPLIT__ 2026-02-12 09:49:13,069 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * from CRM.LeadNote woag WHERE woag.RefId in (3179146, 3179147) and woag.RefType = 'TempWorkorder';... (Thread: ThreadPoolExecutor-7_6) - __SPLIT__ 2026-02-12 09:49:13,071 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment woagca WHERE woagca.WorkOrderAutoGenerationId in (3179146, 3179147);... (Thread: ThreadPoolExecutor-7_7) - __SPLIT__ 2026-02-12 09:49:13,340 - [123965] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 09:49:14,129 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 09:49:14,130 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 09:49:14,146 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 09:49:14,149 - [123965] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 09:49:14,181 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 09:49:14,186 - [123965] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 09:49:14,198 - [123965] - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-12 09:49:14,201 - [123965] - src.utils.log - INFO - Updating temp tables - __SPLIT__ 2026-02-12 09:49:14,225 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT CompanyKey FROM Common.CompanyMaster cm WHERE CompanyId = 133;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:14,489 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 09:49:14,492 - [123965] - src.utils.log - INFO - πŸ” Fetching data: Select DiscountSetupId, [SysName] as DiscountSysName from Common.DiscountSetupMaster WHERE DiscountSetupId = 640 AND CompanyId = 133 AND IsActive = 1;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:14,754 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 09:49:14,757 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM Common.GenerateNumberConfig gnc WHERE CompanyId = 133 AND EnitityNumberType in ('SubWorkOrder'); ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:15,020 - [123965] - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-12 09:49:15,024 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishHistory: 2 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:15,317 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceCore.WorkOrderAutoGenerationPublishHistory - __SPLIT__ 2026-02-12 09:49:16,364 - [123965] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishHistory in 1 batches - __SPLIT__ 2026-02-12 09:49:16,366 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT WorkOrderAutoGenerationPublishHistoryId, WorkOrderNo, ServiceSetupId FROM ServiceCore.WorkOrderAutoGenerationPublishHistory WHERE ServiceSetupId = 149873 AND WorkOrderNo IN ('5371508', '9997322') AND GenerateWorkOrderHistoryId = 123965;... (Thread: ThreadPoolExecutor-8_0) - __SPLIT__ 2026-02-12 09:49:16,799 - [123965] - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-12 09:49:16,800 - [123965] - src.utils.log - INFO - 🏁 Final merged rows: 2 - __SPLIT__ 2026-02-12 09:49:16,805 - [123965] - src.utils.log - INFO - Parallel Insertion in work order tables begin - __SPLIT__ 2026-02-12 09:49:16,806 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_0) - __SPLIT__ 2026-02-12 09:49:16,806 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderAppliedDiscount: 2 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_1) - __SPLIT__ 2026-02-12 09:49:16,806 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderSalesPersonCommission: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_2) - __SPLIT__ 2026-02-12 09:49:16,807 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceAuto.WorkOrderCommissionAdjustment: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_3) - __SPLIT__ 2026-02-12 09:49:16,807 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderServices: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_4) - __SPLIT__ 2026-02-12 09:49:16,807 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrder: 0 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_5) - __SPLIT__ 2026-02-12 09:49:16,808 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderCrew: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_6) - __SPLIT__ 2026-02-12 09:49:16,808 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkorderSourceMapping: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_7) - __SPLIT__ 2026-02-12 09:49:16,808 - [123965] - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationPublishServices: 4 rows in batches of 25000 (Thread: ThreadPoolExecutor-9_8) - __SPLIT__ 2026-02-12 09:49:17,070 - [123965] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceAuto.WorkOrderCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-12 09:49:17,070 - [123965] - src.utils.log - INFO - [OK] Adjustment completed. - __SPLIT__ 2026-02-12 09:49:17,079 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderServices - __SPLIT__ 2026-02-12 09:49:17,087 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderCrew - __SPLIT__ 2026-02-12 09:49:17,096 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 2) into ServiceAuto.WorkOrderAppliedDiscount - __SPLIT__ 2026-02-12 09:49:17,103 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkorderSourceMapping - __SPLIT__ 2026-02-12 09:49:17,111 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderSalesPersonCommission - __SPLIT__ 2026-02-12 09:49:17,112 - [123965] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-12 09:49:17,115 - [123965] - src.utils.log - INFO - [OK] Lead Notes completed. - __SPLIT__ 2026-02-12 09:49:17,116 - [123965] - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrder in 0 batches - __SPLIT__ 2026-02-12 09:49:17,116 - [123965] - src.utils.log - INFO - [OK] Sub WO completed. - __SPLIT__ 2026-02-12 09:49:17,914 - [123965] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkorderSourceMapping in 1 batches - __SPLIT__ 2026-02-12 09:49:17,914 - [123965] - src.utils.log - INFO - [OK] Source Mapping completed. - __SPLIT__ 2026-02-12 09:49:17,953 - [123965] - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 4) into ServiceCore.WorkOrderAutoGenerationPublishServices - __SPLIT__ 2026-02-12 09:49:18,005 - [123965] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderServices in 1 batches - __SPLIT__ 2026-02-12 09:49:18,006 - [123965] - src.utils.log - INFO - [OK] Services completed. - __SPLIT__ 2026-02-12 09:49:18,042 - [123965] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderCrew in 1 batches - __SPLIT__ 2026-02-12 09:49:18,042 - [123965] - src.utils.log - INFO - [OK] Crew completed. - __SPLIT__ 2026-02-12 09:49:18,053 - [123965] - src.utils.log - INFO - βœ… All 2 rows inserted successfully into ServiceAuto.WorkOrderAppliedDiscount in 1 batches - __SPLIT__ 2026-02-12 09:49:18,053 - [123965] - src.utils.log - INFO - [OK] Discount Applied completed. - __SPLIT__ 2026-02-12 09:49:18,106 - [123965] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderSalesPersonCommission in 1 batches - __SPLIT__ 2026-02-12 09:49:18,106 - [123965] - src.utils.log - INFO - [OK] Sales Person Commission completed. - __SPLIT__ 2026-02-12 09:49:18,962 - [123965] - src.utils.log - INFO - βœ… All 4 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationPublishServices in 1 batches - __SPLIT__ 2026-02-12 09:49:18,962 - [123965] - src.utils.log - INFO - [OK] Publish Services completed. - __SPLIT__ 2026-02-12 09:49:18,963 - [123965] - src.utils.log - INFO - All publish tasks completed successfully. - __SPLIT__ 2026-02-12 09:49:18,963 - [123965] - src.utils.log - INFO - Updating Next GenerationDate - __SPLIT__ 2026-02-12 09:49:18,963 - [123965] - src.utils.log - INFO - πŸ” Fetching data: SELECT ServiceSetupId, MAX(NextWorkOrderGenerationDate) AS MaxNextWorkOrderGeneration FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 123965 GROUP BY ServiceSetupId; ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:19,225 - [123965] - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-12 09:49:19,231 - [123965] - src.utils.log - INFO - πŸ”„ Updating next gen date parallely: inside update_next_workorder_generation - __SPLIT__ 2026-02-12 09:49:19,369 - [123965] - src.utils.log - INFO - πŸ›  Creating temp table #tbl_0d3aba38a7 - __SPLIT__ 2026-02-12 09:49:19,506 - [123965] - src.utils.log - INFO - πŸ“Œ Bulk inserting 1 rows into #tbl_0d3aba38a7 - __SPLIT__ 2026-02-12 09:49:20,051 - [123965] - src.utils.log - INFO - πŸ” Running UPDATE to apply changes - __SPLIT__ 2026-02-12 09:49:20,332 - [123965] - src.utils.log - INFO - βœ” SQL reported affected rows: 1 - __SPLIT__ 2026-02-12 09:49:20,332 - [123965] - src.utils.log - INFO - πŸŽ‰ Successfully updated NextGenerationDate using temp table #tbl_0d3aba38a7 - __SPLIT__ 2026-02-12 09:49:20,332 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderSkipMonthAutoGeneration WHERE GenerateWorkOrderHistoryId = 123965 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:20,595 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 09:49:20,595 - [123965] - src.utils.log - INFO - Parallel deletion from temp tables begin - __SPLIT__ 2026-02-12 09:49:20,596 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId in (3179146, 3179147) (Thread: ThreadPoolExecutor-11_0) - __SPLIT__ 2026-02-12 09:49:20,596 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId in (3179146, 3179147) (Thread: ThreadPoolExecutor-11_1) - __SPLIT__ 2026-02-12 09:49:20,596 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId in (3179146, 3179147) (Thread: ThreadPoolExecutor-11_2) - __SPLIT__ 2026-02-12 09:49:20,597 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId in (3179146, 3179147) (Thread: ThreadPoolExecutor-11_3) - __SPLIT__ 2026-02-12 09:49:20,597 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId in (3179146, 3179147) (Thread: ThreadPoolExecutor-11_4) - __SPLIT__ 2026-02-12 09:49:20,597 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3179146, 3179147) (Thread: ThreadPoolExecutor-11_5) - __SPLIT__ 2026-02-12 09:49:20,598 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId in (3179146, 3179147) (Thread: ThreadPoolExecutor-11_6) - __SPLIT__ 2026-02-12 09:49:20,861 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 09:49:20,861 - [123965] - src.utils.log - INFO - [OK] Deleted from Adjustment - __SPLIT__ 2026-02-12 09:49:20,866 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 09:49:20,867 - [123965] - src.utils.log - INFO - [OK] Deleted from SalesPersonCommission - __SPLIT__ 2026-02-12 09:49:20,875 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 09:49:20,875 - [123965] - src.utils.log - INFO - [OK] Deleted from Crews - __SPLIT__ 2026-02-12 09:49:20,882 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 09:49:20,882 - [123965] - src.utils.log - INFO - [OK] Deleted from SubWorkOrder - __SPLIT__ 2026-02-12 09:49:20,888 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 09:49:20,888 - [123965] - src.utils.log - INFO - [OK] Deleted from SourceMapping - __SPLIT__ 2026-02-12 09:49:20,890 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 09:49:20,891 - [123965] - src.utils.log - INFO - [OK] Deleted from Services - __SPLIT__ 2026-02-12 09:49:20,963 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 09:49:20,964 - [123965] - src.utils.log - INFO - [OK] Deleted from AppliedDiscount - __SPLIT__ 2026-02-12 09:49:20,964 - [123965] - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId in (3179146, 3179147) (Thread: ThreadPoolExecutor-10_0) - __SPLIT__ 2026-02-12 09:49:21,262 - [123965] - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-12 09:49:21,263 - [123965] - src.utils.log - INFO - βœ” Completed batch of 2 records - __SPLIT__ 2026-02-12 09:49:21,263 - [123965] - src.utils.log - INFO - πŸŽ‰ All batches processed. - __SPLIT__ 2026-02-12 09:49:21,263 - [123965] - src.utils.log - INFO - Work order published ids: (3179146, 3179147) - __SPLIT__ 2026-02-12 09:49:21,263 - [123965] - src.utils.log - INFO - Time took to perform operation in publishing [123965]: 17.04 - __SPLIT__ 2026-02-12 09:49:21,264 - [123965] - src.utils.log - INFO - Publish Completed for GenerateWorkOrderHistoryId: [123965] - __SPLIT__ 2026-02-12 09:49:21,264 - [123965] - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET PublishStatus = 'Completed', PublishStatusDateTime = '2026-02-12 04:49:21.263' WHERE CompanyId = 133 AND GenerateWorkOrderHistoryId = 123965;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-12 09:49:21,530 - [123965] - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-13 05:59:39,164 - 123974 - src.utils.log - INFO - ParallelProcessing=True GenerateWorkOrderHistoryId=123974 - __SPLIT__ 2026-02-13 05:59:39,165 - 123974 - src.utils.log - INFO - Parallel Work order generation algo started for GenerateWorkOrderHistoryId: 123974 - __SPLIT__ 2026-02-13 05:59:39,165 - 123974 - src.utils.log - INFO - βœ… Successfully connected to database - __SPLIT__ 2026-02-13 05:59:39,167 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT ConnectionStringName FROM Common.CompanyTenantMaster WHERE CompanyKey = 'abcdallas' ... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:41,306 - 123974 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-13 05:59:41,307 - 123974 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__ 2026-02-13 05:59:41,307 - 123974 - src.utils.log - INFO - πŸ”Œ Connecting to: abcdallas - __SPLIT__ 2026-02-13 05:59:41,308 - 123974 - src.utils.log - INFO - βœ… Successfully connected to abcdallas - __SPLIT__ 2026-02-13 05:59:41,308 - 123974 - src.utils.log - INFO - βœ… Connected to company-specific database: abcdallas - __SPLIT__ 2026-02-13 05:59:41,308 - 123974 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'InProgress' WHERE GenerateWorkOrderHistoryId = 123974;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:43,183 - 123974 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-13 05:59:43,183 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT sss.RecurringServicePrice, gw.StartDate, gw.EndDate, gw.CreatedBy AS NewCreatedBy, gw.RouteIds, ss.* FROM ServiceCore.GenerateWorkOrderHistory gw JOIN ServiceCore.ServiceSetup ss ON gw.CompanyId = ss.CompanyId AND ( (ss.NextGenerationDate <= gw.EndDate AND ss.NextGenerationDate >= gw.StartDate) OR ss.NextGenerationDate IS NULL) AND (gw.AccountNumber IS NULL OR ss.AccountNumber = gw.AccountNumber) AND (gw.ServiceSetupId IS NULL OR ss.ServiceSetupId = gw.ServiceSetupId)AND (gw.RouteIds IS NULL OR ss.RouteMasterId IN (SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123974), ',' )) OR ss.InitialRouteId IN ( SELECT CAST(value AS INT) FROM STRING_SPLIT((SELECT RouteIds FROM ServiceCore.GenerateWorkOrderHistory WHERE GenerateWorkOrderHistoryid = 123974), ','))) JOIN (SELECT SUM(Price) AS RecurringServicePrice, ServiceSetupId FROM ServiceCore.ServiceSetupServices GROUP BY ServiceSetupId ) sss ON sss.ServiceSetupId = ss.ServiceSetupId WHERE gw.GenerateWorkOrderHistoryid = 123974 AND ss.FrequencyScheduleId IS NOT NULL AND ss.IsActive = 1 AND ss.IsDeleted = 0 AND ss.Status <> 'Canceled';... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:43,565 - 123974 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-13 05:59:43,565 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.GenerateWorkOrderHistory gwoh WHERE GenerateWorkOrderHistoryId = 123974;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:43,829 - 123974 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-13 05:59:43,832 - 123974 - src.utils.log - INFO - FrequencyScheduleId missing for setups: []: Ignored these setups - __SPLIT__ 2026-02-13 05:59:43,832 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT fsd.IntervalDays, fs.CreatedDate ,f.FrequencyId , fs.FrequencyScheduleId, f.[SysName], f.FrequencyValue, f.YearlyOccurrence , fs.ScheduleFormat,fsd.Days, fsd.Weeks, fsd.Months,fsc.[Month] as sch_months, fsd.StartMonth , fsd.DateDay,fsd.DateMonth FROM [ServiceCore].[FrequencyMaster] f inner join [ServiceCore].[FrequencySchedule] fs on fs.FrequencyId = f.FrequencyId left join ServiceCore.FrequencyScheduleCycle fsc on fsc.FrequencyScheduleId = fs.FrequencyScheduleId left join [ServiceCore].[FrequencyScheduleDetail] fsd on fsd.FrequencyScheduleId = fs.FrequencyScheduleId WHERE fsd.FrequencyScheduleId = 14728... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:44,103 - 123974 - src.utils.log - INFO - βœ… Fetched 60 rows - __SPLIT__ 2026-02-13 05:59:44,103 - 123974 - src.utils.log - INFO - Found the Setups and Frequencies - __SPLIT__ 2026-02-13 05:59:44,106 - 123974 - src.utils.log - INFO - πŸ“Š Found 1 setups to process across 1 routes - __SPLIT__ 2026-02-13 05:59:44,106 - 123974 - src.utils.log - INFO - πŸš€ Starting parallel processing with 8 workers - __SPLIT__ 2026-02-13 05:59:44,107 - 123974 - src.utils.log - INFO - Generating Sequentially as less then one route given - __SPLIT__ 2026-02-13 05:59:44,107 - 123974 - src.utils.log - INFO - πŸ”„ Processing route: 1 with 1 setups - __SPLIT__ 2026-02-13 05:59:44,107 - 123974 - src.utils.log - INFO - Inside work order function - __SPLIT__ 2026-02-13 05:59:44,108 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149877;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:44,371 - 123974 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-13 05:59:44,372 - 123974 - src.utils.log - INFO - πŸ” Fetching data: select ServiceDate, ServiceSetupId from serviceCore.WorkOrder wo inner join ServiceCore.WorkOrderStatus wos on wo.WoStatusId = wos.WoStatusId where ServiceDate >= '2026-02-13 00:00:00' and ServiceDate <= '2026-12-31 00:00:00' and ServiceSetupId = 149877 and wo.IsActive = 1 and wos.Name not in ('Void', 'Cancelled');... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:44,648 - 123974 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-13 05:59:45,199 - 123974 - src.utils.log - INFO - Generating work orders for setup: 149877 - __SPLIT__ 2026-02-13 05:59:45,412 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM COMMON.RangeofTime where RangeofTimeId = 11428;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:45,674 - 123974 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-13 05:59:45,802 - 123974 - src.utils.log - INFO - Updating Next Gen Date - __SPLIT__ 2026-02-13 05:59:45,837 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT WoStatusId From ServiceCore.WorkOrderStatus wos where CompanyId=133 and [SysName]= 'Incomplete' ;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:46,098 - 123974 - src.utils.log - INFO - βœ… Fetched 1 rows - __SPLIT__ 2026-02-13 05:59:46,102 - 123974 - src.utils.log - INFO - Deleting duplicate records - __SPLIT__ 2026-02-13 05:59:46,102 - 123974 - src.utils.log - INFO - Running deletes SEQUENTIALLY… - __SPLIT__ 2026-02-13 05:59:46,103 - 123974 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationServices WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149877 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:46,381 - 123974 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-13 05:59:46,382 - 123974 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCrews WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149877 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:46,666 - 123974 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-13 05:59:46,667 - 123974 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationSalesPersonCommission WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149877 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:46,932 - 123974 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-13 05:59:46,932 - 123974 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationAppliedDiscount WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149877 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:47,211 - 123974 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-13 05:59:47,212 - 123974 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SetupAutoGenerationSourceMapping WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149877 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:47,536 - 123974 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-13 05:59:47,537 - 123974 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.SubWorkOrderAutoGeneration WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149877 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:47,803 - 123974 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-13 05:59:47,803 - 123974 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGenerationCommissionAdjustment WHERE WorkOrderAutoGenerationId IN ( SELECT WorkOrderAutoGenerationId FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149877 ) (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:48,065 - 123974 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-13 05:59:48,065 - 123974 - src.utils.log - INFO - πŸ—‘οΈ Deleting records: DELETE FROM ServiceCore.WorkOrderAutoGeneration WHERE ServiceSetupId = 149877 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:48,360 - 123974 - src.utils.log - INFO - βœ… Records deleted successfully - __SPLIT__ 2026-02-13 05:59:48,360 - 123974 - src.utils.log - INFO - πŸ“ Inserting 27 work orders for route: 1 - __SPLIT__ 2026-02-13 05:59:48,360 - 123974 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGeneration: 27 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:48,678 - 123974 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 27) into ServiceCore.WorkOrderAutoGeneration - __SPLIT__ 2026-02-13 05:59:50,862 - 123974 - src.utils.log - INFO - βœ… All 27 rows inserted successfully into ServiceCore.WorkOrderAutoGeneration in 1 batches - __SPLIT__ 2026-02-13 05:59:50,863 - 123974 - src.utils.log - INFO - πŸ” Fetching data: Select TOP 27 WorkOrderAutoGenerationId, ServiceSetupId , ModifiedBy, ModifiedDate, IsInitial From ServiceCore.WorkOrderAutoGeneration WHERE ModifiedDate='2026-02-11 16:22:17.623' and ServiceSetupId = 149877... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:51,138 - 123974 - src.utils.log - INFO - βœ… Fetched 27 rows - __SPLIT__ 2026-02-13 05:59:51,139 - 123974 - src.utils.log - INFO - βœ… Work order IDs inserted for route 1: 27 records - __SPLIT__ 2026-02-13 05:59:51,139 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSubWorkOrder ssswo WHERE ssswo.ServiceSetupId = 149877;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:51,400 - 123974 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-13 05:59:51,400 - 123974 - src.utils.log - INFO - Inside get_remaining_temp_tables - __SPLIT__ 2026-02-13 05:59:51,401 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.serviceSetupServices sss where ServiceSetupId = 149877... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:51,664 - 123974 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-13 05:59:51,664 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from servicecore.ServiceSetupInitialServices sss where ServiceSetupId = 149877... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:51,927 - 123974 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-13 05:59:51,935 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCrew ssc where ServiceSetupId = 149877... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:52,203 - 123974 - src.utils.log - INFO - βœ… Fetched 3 rows - __SPLIT__ 2026-02-13 05:59:52,204 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupSalesPersonCommission ssspc where ServiceSetupId = 149877... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:52,467 - 123974 - src.utils.log - INFO - βœ… Fetched 4 rows - __SPLIT__ 2026-02-13 05:59:52,469 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.ServiceSetupCommissionAdjustment ssspc where ServiceSetupId = 149877... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:52,730 - 123974 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-13 05:59:52,730 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.serviceSetupAppliedDiscount WHERE ServiceSetupId = 149877;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:52,993 - 123974 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-13 05:59:52,994 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * from ServiceCore.SetupSourceMapping WHERE ServiceSetupId = 149877;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:53,256 - 123974 - src.utils.log - INFO - βœ… Fetched 2 rows - __SPLIT__ 2026-02-13 05:59:53,257 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * FROM [ServiceCore].[CommunicationPreferencesServiceReportNotification] WITH(NOLOCK) WHERE EntityType = 'Setup' AND ServiceSetupId = 149877;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:53,536 - 123974 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-13 05:59:53,536 - 123974 - src.utils.log - INFO - πŸ” Fetching data: SELECT * From CRM.LeadNote WHERE RefType = 'Setup' and RefId = 149877;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:53,799 - 123974 - src.utils.log - INFO - βœ… Fetched 0 rows - __SPLIT__ 2026-02-13 05:59:53,822 - 123974 - src.utils.log - INFO - Inside insert_data_in_temp_tables for work order generation - __SPLIT__ 2026-02-13 05:59:53,822 - 123974 - src.utils.log - INFO - πŸ“₯ Inserting into CRM.LeadNote: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:54,110 - 123974 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into CRM.LeadNote in 0 batches - __SPLIT__ 2026-02-13 05:59:54,110 - 123974 - src.utils.log - INFO - leadNoteDf inserted to dream DB - __SPLIT__ 2026-02-13 05:59:54,110 - 123974 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.CommunicationPreferencesServiceReportNotification: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:54,394 - 123974 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.CommunicationPreferencesServiceReportNotification in 0 batches - __SPLIT__ 2026-02-13 05:59:54,395 - 123974 - src.utils.log - INFO - CommunicationPreferencesServiceReportNotification inserted to dream DB - __SPLIT__ 2026-02-13 05:59:54,395 - 123974 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SetupAutoGenerationSourceMapping: 54 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:54,681 - 123974 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 54) into ServiceCore.SetupAutoGenerationSourceMapping - __SPLIT__ 2026-02-13 05:59:55,474 - 123974 - src.utils.log - INFO - βœ… All 54 rows inserted successfully into ServiceCore.SetupAutoGenerationSourceMapping in 1 batches - __SPLIT__ 2026-02-13 05:59:55,474 - 123974 - src.utils.log - INFO - SetupAutoGenerationSourceMapping inserted to dream DB - __SPLIT__ 2026-02-13 05:59:55,474 - 123974 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationAppliedDiscount: 27 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:55,765 - 123974 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 27) into ServiceCore.WorkOrderAutoGenerationAppliedDiscount - __SPLIT__ 2026-02-13 05:59:56,773 - 123974 - src.utils.log - INFO - βœ… All 27 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationAppliedDiscount in 1 batches - __SPLIT__ 2026-02-13 05:59:56,773 - 123974 - src.utils.log - INFO - WorkOrderAutoGenerationAppliedDiscount inserted to dream DB - __SPLIT__ 2026-02-13 05:59:56,773 - 123974 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.SubWorkOrderAutoGeneration: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:57,056 - 123974 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.SubWorkOrderAutoGeneration in 0 batches - __SPLIT__ 2026-02-13 05:59:57,056 - 123974 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-13 05:59:57,056 - 123974 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:57,339 - 123974 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCommissionAdjustment in 0 batches - __SPLIT__ 2026-02-13 05:59:57,339 - 123974 - src.utils.log - INFO - SubWorkOrderAutoGeneration inserted to dream DB - __SPLIT__ 2026-02-13 05:59:57,340 - 123974 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission: 54 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:57,627 - 123974 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 54) into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission - __SPLIT__ 2026-02-13 05:59:58,590 - 123974 - src.utils.log - INFO - βœ… All 54 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationSalesPersonCommission in 1 batches - __SPLIT__ 2026-02-13 05:59:58,591 - 123974 - src.utils.log - INFO - WorkOrderAutoGenerationSalesPersonCommission_df inserted to dream DB - __SPLIT__ 2026-02-13 05:59:58,591 - 123974 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationCrews: 54 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 05:59:58,878 - 123974 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 54) into ServiceCore.WorkOrderAutoGenerationCrews - __SPLIT__ 2026-02-13 05:59:59,825 - 123974 - src.utils.log - INFO - βœ… All 54 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationCrews in 1 batches - __SPLIT__ 2026-02-13 05:59:59,825 - 123974 - src.utils.log - INFO - WorkOrderAutoGenerationCrews inserted to dream DB - __SPLIT__ 2026-02-13 05:59:59,826 - 123974 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 0 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 06:00:00,124 - 123974 - src.utils.log - INFO - βœ… All 0 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 0 batches - __SPLIT__ 2026-02-13 06:00:00,124 - 123974 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-13 06:00:00,124 - 123974 - src.utils.log - INFO - πŸ“₯ Inserting into ServiceCore.WorkOrderAutoGenerationServices: 54 rows in batches of 25000 (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 06:00:00,394 - 123974 - src.utils.log - INFO - πŸ“€ Inserting batch 1/1 (0 to 54) into ServiceCore.WorkOrderAutoGenerationServices - __SPLIT__ 2026-02-13 06:00:01,388 - 123974 - src.utils.log - INFO - βœ… All 54 rows inserted successfully into ServiceCore.WorkOrderAutoGenerationServices in 1 batches - __SPLIT__ 2026-02-13 06:00:01,388 - 123974 - src.utils.log - INFO - WorkOrderAutoGenerationServices inserted to dream DB - __SPLIT__ 2026-02-13 06:00:01,388 - 123974 - src.utils.log - INFO - βœ… Temp tables populated for route: 1 - __SPLIT__ 2026-02-13 06:00:01,389 - 123974 - src.utils.log - INFO - βœ… Route 1 generation complete - __SPLIT__ 2026-02-13 06:00:01,389 - 123974 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123974;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 06:00:01,651 - 123974 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-13 06:00:01,651 - 123974 - src.utils.log - INFO - ⏱️ Total time: 22.49s | Status: Completed - __SPLIT__ 2026-02-13 06:00:01,651 - 123974 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET Status = 'Completed' WHERE GenerateWorkOrderHistoryId = 123974;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 06:00:01,912 - 123974 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-13 06:00:01,912 - 123974 - src.utils.log - INFO - πŸ“ Executing: UPDATE ServiceCore.GenerateWorkOrderHistory SET WorkOrderStatusDateTime = '2026-02-13 01:00:01.912' WHERE GenerateWorkOrderHistoryId = 123974;... (Thread: AnyIO worker thread) - __SPLIT__ 2026-02-13 06:00:02,176 - 123974 - src.utils.log - INFO - βœ… Command executed successfully - __SPLIT__ 2026-02-13 06:00:02,177 - 123974 - src.utils.log - INFO - πŸ”’ Connection pool closed - __SPLIT__