Merge pull request #23 from Fewzion/master

Fix bug with getting a stale JobQueues query result that resulted in the
This commit is contained in:
Austin Winstanley
2017-07-18 02:18:31 -05:00
committed by GitHub
@@ -62,6 +62,7 @@ namespace Hangfire.Raven.JobQueues
foreach (var job in repository.Query<Hangfire_JobQueues.Mapping, Hangfire_JobQueues>()
.Where(fetchCondition)
.Where(job => job.Queue == queue)
.Customize(x => x.WaitForNonStaleResultsAsOfNow())
.OfType<JobQueue>())
{
job.FetchedAt = DateTime.UtcNow;