2017 © Pedro Peláez
 

symfony-bundle command-lock-bundle

Symfony bundle who create a lock in commands, avoiding the execution of same command simultaneously

image

ffreitas-br/command-lock-bundle

Symfony bundle who create a lock in commands, avoiding the execution of same command simultaneously

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 8 Versions
  • 1 % Grown

The README.md

command-lock-bundle

Build Status Dependency Status, (*1)

#

This command-lock-bundle when installed prevents two or more of same command runs simultaneously., (*2)


Installation

#

To install command-lock-bundle you will need just a few minutes., (*3)

#

1) Include the command-lock-bundle in the required section of composer.json., (*4)

composer.json

// ...
"require": {
    "ffreitas-br/command-lock-bundle": "dev-master",
},
// ...

After this run composer update or composer intall to refresh your dependencies., (*5)

#

2) Register the bundle in your Kernel., (*6)

app/AppKernel.php

<?php

public function registerBundles()
{
    $bundles = array(
        // ...
        new FFreitasBr\CommandLockBundle\CommandLockBundle(),
    );
    // ...
}

#

3) Configure the directory where the pid lock files will be stored., (*7)

app/config/config.yml

...

command_lock:
    pid_directory: "%kernel.root_dir%/data/command_pid_files"

...

Don't worry if you don't have the directories created yet, the bundle will take care of this for you., (*8)

#

4) [OPTIONAL] Configure a list of exceptions., (*9)

app/config/config.yml

...

command_lock:
    exceptions:
        - cache:warmup
        - cache:clear

...

The commands listed in this configurations will be allowed to run simultaneously., (*10)


Now you have the command-lock-bundle installed and configured, it will now prevents two or more of same command runs simultaneously., (*11)

The Versions

02/06 2014

dev-master

9999999-dev https://github.com/ffreitas-br/command-lock-bundle

Symfony bundle who create a lock in commands, avoiding the execution of same command simultaneously

  Sources   Download

MIT

The Requires

 

The Development Requires

command bundle symfony

02/06 2014

v1.2.0

1.2.0.0 https://github.com/ffreitas-br/command-lock-bundle

Symfony bundle who create a lock in commands, avoiding the execution of same command simultaneously

  Sources   Download

MIT

The Requires

 

The Development Requires

command bundle symfony

02/06 2014

dev-v1.2.0-dev

dev-v1.2.0-dev https://github.com/ffreitas-br/command-lock-bundle

Symfony bundle who create a lock in commands, avoiding the execution of same command simultaneously

  Sources   Download

MIT

The Requires

 

The Development Requires

command bundle symfony

02/06 2014

v1.1.2

1.1.2.0 https://github.com/ffreitas-br/command-lock-bundle

Symfony bundle who create a lock in commands, avoiding the execution of same command simultaneously

  Sources   Download

MIT

The Requires

 

The Development Requires

command bundle symfony

02/06 2014

v1.1.1

1.1.1.0 https://github.com/ffreitas-br/command-lock-bundle

Symfony bundle who create a lock in commands, avoiding the execution of same command simultaneously

  Sources   Download

MIT

The Requires

 

The Development Requires

command bundle symfony

02/06 2014

dev-development

dev-development https://github.com/ffreitas-br/command-lock-bundle

Symfony bundle who create a lock in commands, avoiding the execution of same command simultaneously

  Sources   Download

MIT

The Requires

 

The Development Requires

command bundle symfony

27/04 2014

v1.1.0

1.1.0.0 https://github.com/ffreitas-br/command-lock-bundle

Symfony bundle who create a lock in commands, avoiding the execution of same command simultaneously

  Sources   Download

MIT

The Requires

 

The Development Requires

command bundle symfony

03/03 2014

v1.0.0

1.0.0.0 https://github.com/ffreitas-br/command-lock-bundle

Symfony bundle who create a lock in commands, avoiding the execution of same command simultaneously

  Sources   Download

MIT

The Requires

 

The Development Requires

command bundle symfony