fix job status

#time 1h
This commit is contained in:
aina esokia
2020-10-20 15:57:46 +03:00
parent aa4fd6f17a
commit e9dabaaa41
2 changed files with 5 additions and 3 deletions

View File

@@ -85,8 +85,8 @@ class WorkerRunningJobRepository extends EntityRepository
$qb = $this->createQueryBuilder('w');
$qb->where($qb->expr()->in('w.databoxId', $databoxIds))
->andWhere('w.work = :work')
->andWhere('w.status != :status')
->setParameters([ 'work' => MessagePublisher::POPULATE_INDEX_TYPE, 'status' => WorkerRunningJob::FINISHED])
->andWhere('w.status = :status')
->setParameters([ 'work' => MessagePublisher::POPULATE_INDEX_TYPE, 'status' => WorkerRunningJob::RUNNING])
;
return count($qb->getQuery()->getResult());