Search code examples
phpsymfonysymfony4

Symfony LockableTrait - unlock after error/timeout


I am using LockableTrait https://symfony.com/doc/current/console/lockable_trait.html for preventing my command to be executed simultaneously. Because of error/timeout command is locked now so I can not run it again anymore without removing LockableTrait functionality.

How can I can remove lock manually? Command line or so?


Solution

  • I assume that you are running command with: $ bin/console app:say-hello

    This is how you can manually kill it.

    $ ps aux | grep -i app:say-hello | awk {'print $2'} | xargs kill -9