Mutex for Laravel Console Commands.
MIT License
Bot releases are visible (Hide)
Published by dmitry-ivanov over 2 years ago
arvenil/ninja-mutex
, and support MySQL PDO options for mysql
lock strategy (thanks, @rafacouto );Published by dmitry-ivanov over 2 years ago
⚠️ If you're using $mutexStrategy
and/or $mutexTimeout
fields, your IDE might ask you to add proper types (string
and/or ?int
):
class ExampleCommand extends Command
{
use WithoutOverlapping;
protected string $mutexStrategy = 'mysql';
protected ?int $mutexTimeout = 3000;
// ...
}
The null
should be set explicitly, if used:
class ExampleCommand extends Command
{
use WithoutOverlapping;
protected ?int $mutexTimeout = null;
// ...
}
Published by dmitry-ivanov over 2 years ago
Published by dmitry-ivanov almost 4 years ago
Published by dmitry-ivanov almost 4 years ago
Published by dmitry-ivanov almost 4 years ago
Published by dmitry-ivanov almost 4 years ago
Published by dmitry-ivanov almost 4 years ago
Published by dmitry-ivanov almost 4 years ago
Published by dmitry-ivanov almost 4 years ago
Published by dmitry-ivanov about 4 years ago
Published by dmitry-ivanov over 4 years ago
Published by dmitry-ivanov over 4 years ago
Published by dmitry-ivanov about 5 years ago
Illuminated\Console\MutexRuntimeException
is thrown now, instead of the RuntimeException
;Published by dmitry-ivanov over 5 years ago
Published by dmitry-ivanov about 6 years ago
Published by dmitry-ivanov about 6 years ago
Published by dmitry-ivanov about 6 years ago
Published by dmitry-ivanov about 6 years ago