Skip to content

Commit

Permalink
Update JobServices.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Mar 27, 2024
1 parent 7b5fb0c commit 83cdd54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MyApp.ServiceInterface/JobServices.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public async Task<object> Any(GetNextJobs request)
if (job == null)
{
var dbHasIncompleteJobs = await Db.SelectAsync(Db.From<PostJob>()
.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 });
Expand Down

0 comments on commit 83cdd54

Please sign in to comment.