Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling preventOverlapping without LockFactory results in BadMethodCallException #169

Closed
PabloKowalczyk opened this issue Nov 15, 2018 · 0 comments
Labels

Comments

@PabloKowalczyk
Copy link
Collaborator

Crunz version: v1.11.0-beta.2

PHP version: 5.6.37

Operating system type and version: Ubuntu 16.04

Description
Crating task with empty LockFactory passed to preventOverlapping() results in BadMethodCallException.

  [BadMethodCallException]
  No lock factory. Please call preventOverlapping() with lock storage first.

How to reproduce
Use this task code:

use Crunz\Schedule;

$scheduler = new Schedule();
$scheduler
    ->run('echo "Works"')
    ->description('Task description')
    ->everyMinute()
    ->preventOverlapping()
;

return $scheduler;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant