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 8a7b2e8 commit 7b5fb0c
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)) && x.Model != "rank"));
.Where(x => x.CompletedDate == null || x.StartedDate < DateTime.UtcNow.AddMinutes(-5)));
if (dbHasIncompleteJobs.Count > 0)
{
await Any(new RestoreModelQueues { RestoreFailedJobs = true });
Expand Down

0 comments on commit 7b5fb0c

Please sign in to comment.