mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 19:13:26 +00:00
PHRAS-3447_file-lock-in-workers_4.1
fix : exclusive lock for a worker to work on a subdef file
This commit is contained in:
@@ -157,10 +157,10 @@ class AdminConfigurationController extends Controller
|
||||
/** @var WorkerRunningJob $workerRunningJob */
|
||||
$workerRunningJob = $repoWorker->find($workerId);
|
||||
|
||||
$workerRunningJob
|
||||
->setStatus($request->request->get('status'))
|
||||
->setFinished(new \DateTime('now'))
|
||||
;
|
||||
$workerRunningJob->setStatus($request->request->get('status'));
|
||||
if($request->request->get('finished') == '1') {
|
||||
$workerRunningJob->setFinished(new \DateTime('now'))->setFlock(null);
|
||||
}
|
||||
|
||||
$em = $repoWorker->getEntityManager();
|
||||
$em->persist($workerRunningJob);
|
||||
|
Reference in New Issue
Block a user