mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
add and display interrupt status
This commit is contained in:
@@ -92,6 +92,19 @@ class WorkerRunningJobRepository extends EntityRepository
|
||||
return count($qb->getQuery()->getResult());
|
||||
}
|
||||
|
||||
public function findByStatus(array $status, $start = 0, $limit = WorkerRunningJob::MAX_RESULT)
|
||||
{
|
||||
$qb = $this->createQueryBuilder('w');
|
||||
$qb
|
||||
->where($qb->expr()->in('w.status', $status))
|
||||
->setFirstResult($start)
|
||||
->setMaxResults($limit)
|
||||
->orderBy('w.id', 'DESC')
|
||||
;
|
||||
|
||||
return $qb->getQuery()->getResult();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $commitId
|
||||
* @return bool
|
||||
|
Reference in New Issue
Block a user