torqit / pimcore-command-locker-bundle
Installs: 20 033
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:pimcore-bundle
pkg:composer/torqit/pimcore-command-locker-bundle
Requires
- pimcore/pimcore: ^11.0
- symfony/lock: ^6.2
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:
- Make sure you register the
CommandLockerBundlein yourAppKernel.phplocated 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); - You will also be required to enable the bundle. Either navigate to
var/config/extensions.phpand add it, or runbin/console pimcore:bundle:enable CommandLockerBundle. - Run the bundle, with the command:
./bin/console torq:command-locker 'YOUR_COMMAND_TO_BE_RUN'.