mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
fix job status
#time 1h
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user