Update and fix worker
This commit is contained in:
@@ -52,6 +52,12 @@ public interface IJobRepository
|
||||
/// </summary>
|
||||
Task<int> ResetStaleJobsAsync(int timeoutMinutes = 5);
|
||||
|
||||
/// <summary>
|
||||
/// Resets all jobs (Running or Pending) assigned to a specific worker back to Pending status.
|
||||
/// Used when a worker restarts to clear jobs from the previous instance.
|
||||
/// </summary>
|
||||
Task<int> ResetJobsByWorkerIdAsync(string workerId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets all running jobs assigned to a specific worker
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user