diff --git a/MyApp.ServiceInterface/JobServices.cs b/MyApp.ServiceInterface/JobServices.cs index 1f7da47..d7f1fad 100644 --- a/MyApp.ServiceInterface/JobServices.cs +++ b/MyApp.ServiceInterface/JobServices.cs @@ -23,7 +23,7 @@ public async Task Any(GetNextJobs request) if (job == null) { var dbHasIncompleteJobs = await Db.SelectAsync(Db.From() - .Where(x => x.CompletedDate == null || x.StartedDate < DateTime.UtcNow.AddMinutes(-5))); + .Where(x => (x.CompletedDate == null || x.StartedDate < DateTime.UtcNow.AddMinutes(-5)) && x.Model != "rank")); if (dbHasIncompleteJobs.Count > 0) { await Any(new RestoreModelQueues { RestoreFailedJobs = true });