torqit/pimcore-command-locker-bundle

There is no license information available for the latest version (V2.0.0) of this package.

Installs: 11 013

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:pimcore-bundle

V2.0.0 2023-10-04 12:44 UTC

This package is auto-updated.

Last update: 2024-04-04 13:50:26 UTC


README

This command will create a lock prior to running a command, so that the command cannot be started again by another container / process.

Installing the package via composer

This bundle is easily installed via composer: composer require torqit/pimcore-command-locker-bundle

Steps to setting up the object deleter:

  1. Make sure you register the CommandLockerBundle in your AppKernel.php located at \src\pimcore-root\app\AppKernel.php. Registering the bundle is as easy as adding a line in the registerBundlesToCollection function, like so: $collection->addBundle(new \TorqIT\CommandLockerBundle\CommandLockerBundle);
  2. You will also be required to enable the bundle. Either navigate to var/config/extensions.php and add it, or run bin/console pimcore:bundle:enable CommandLockerBundle.
  3. Run the bundle, with the command: ./bin/console torq:command-locker 'YOUR_COMMAND_TO_BE_RUN'.