mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 03:53:13 +00:00
Merge branch 'master' into PHRAS-3239-purge-queue
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());
|
||||
|
@@ -102,7 +102,9 @@ class AdminConfigurationController extends Controller
|
||||
|
||||
/**
|
||||
* @param Request $request
|
||||
* @param integer $workerId
|
||||
* @param $workerId
|
||||
* @return \Symfony\Component\HttpFoundation\JsonResponse
|
||||
* @throws \Doctrine\ORM\OptimisticLockException
|
||||
*/
|
||||
public function changeStatusAction(Request $request, $workerId)
|
||||
{
|
||||
|
Reference in New Issue
Block a user