|
|
|
@ -21,13 +21,13 @@ namespace Volo.Abp.BackgroundJobs.MongoDB |
|
|
|
Clock = clock; |
|
|
|
} |
|
|
|
|
|
|
|
public async Task<List<BackgroundJobRecord>> GetWaitingListAsync(int maxResultCount) |
|
|
|
public virtual async Task<List<BackgroundJobRecord>> GetWaitingListAsync(int maxResultCount) |
|
|
|
{ |
|
|
|
return await GetWaitingListQuery(maxResultCount) |
|
|
|
.ToListAsync(); |
|
|
|
} |
|
|
|
|
|
|
|
private IMongoQueryable<BackgroundJobRecord> GetWaitingListQuery(int maxResultCount) |
|
|
|
protected virtual IMongoQueryable<BackgroundJobRecord> GetWaitingListQuery(int maxResultCount) |
|
|
|
{ |
|
|
|
var now = Clock.Now; |
|
|
|
return GetMongoQueryable() |
|
|
|
|