I have a cron script that executes a PHP script every 10 minutes. The script checks a queue and processes the data in the queue. Sometimes the queue has enough data to last ov
You can use new Symfony 2.6 LockHandler. Source
$lock = new LockHandler('update:contents'); if (!$lock->lock()) { echo 'The command is already running in another process.'; }