internal void UpdateStartCondition(IJob job) { var jobConfirmation = _scopeQueue.GetAllJobs().SingleOrDefault(x => x.Job.Key == job.Key); if (jobConfirmation == null) { Agent.DebugMessage($"Bucket {job.Key} {job.Name} is not in Queue anymore", CustomLogger.JOB, LogLevel.Warn); return; } _scopeQueue.UpdateBucket(job); Agent.DebugMessage($"Bucket {job.Key} {job.Name} found and updated", CustomLogger.JOB, LogLevel.Warn); RequeueIfNecessary(); UpdateProcessingItem(); }