This commit is contained in:
Suphonchai Phoonsawat 2026-07-03 22:19:18 +07:00
parent 0cb199d0ee
commit def3992d44
3 changed files with 5 additions and 6 deletions

View file

@ -124,6 +124,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants
}
return job!;
}
/// <summary>
/// ดึงข้อมูลงานที่ค้างอยู่ในสถานะ PENDING หรือ PROCESSING เกินเวลาที่กำหนด (นาที)

View file

@ -123,6 +123,8 @@ namespace BMA.EHR.Application.Repositories.Leaves.TimeAttendants
return data;
}
/// <summary>
/// อัปเดตสถานะเป็น Processing

View file

@ -225,12 +225,7 @@ if (manager != null)
// QueueName = "leave"
// });
//
// manager.AddOrUpdate("ประมวลผลงานที่ค้างอยู่ในสถานะ Pending หรือ Processing", Job.FromExpression<LeaveProcessJobStatusRepository>(x => x.ProcessPendingJobsAsync()), "0 3 * * *",
// new RecurringJobOptions
// {
// TimeZone = bangkokTimeZone,
// QueueName = "leave" // ← กำหนด queue
// });
}
// apply migrations