You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$flock = newFLock(__CLASS__);
if ($flock->isLocked()) {
$output->writeln("<error> Command ". $this->getName(). " already running in this system. Kill it or try again later </error>", OutputInterface::VERBOSITY_QUIET);
return -1;
}
which uses class Flock from intaro/pinboard#61 (comment). This realization must unlock file when process failed.
While a deploy is running, create a deploy.lock file so that subsequent deploys cannot be happening at the same time.
Things to look out for:
If a deploy fails, will it always be able to remove the deploy.lock file? If it cannot, people will be stuck without being able to deploy.
The text was updated successfully, but these errors were encountered: