PHPackages                             in2code/deploymentlocker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. in2code/deploymentlocker

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

in2code/deploymentlocker
========================

Simple script to prohibit parallel execution of the same TYPO3.Surf deployment

1.1.0(7y ago)128GPL-3.0PHPPHP 5.5 - 7.2

Since Mar 9Pushed 7y ago2 watchersCompare

[ Source](https://github.com/in2code-de/In2code.DeploymentLocker)[ Packagist](https://packagist.org/packages/in2code/deploymentlocker)[ Docs](https://github.com/in2code-de/In2code.DeploymentLocker)[ RSS](/packages/in2code-deploymentlocker/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

In2code.DeploymentLocker - Prevent parallel execution of the same deployment
============================================================================

[](#in2codedeploymentlocker---prevent-parallel-execution-of-the-same-deployment)

Description
-----------

[](#description)

TYPO3.Surf is a CLI application for automated deployment. When a deployment is runs, many tasks are executed in a order. If a deployment runs parallel in two seperate processes, it might leave your deployment target in an unusable and hard recoverable state.

To prevent, that one deployment is executet twice ore more times at the same time, you can simply lock it.

This does not affect any other deployment. You can still run another deployment in parallel!

Installation
------------

[](#installation)

Install In2code.DeploymentLocker via composer

```
composer require in2code/deploymentlocker

```

How to Use
----------

[](#how-to-use)

Open the deployment you want to protect and add followinf line after the php opening tag. It should look like this: (Notice that the annotation is optional)

```
