jdavidbakr / MultiServerEvent

Laravel plugin to allow scheduled events across multiple servers with the same scheduler to not overlap.
MIT License
37 stars 17 forks source link

Question about Laravel's ->withoutOverlapping() #11

Closed volkeransmann closed 7 years ago

volkeransmann commented 7 years ago

Hi,

one question: does the ->withoutOverlappingMultiServer() method include the ->withoutOverlapping() functionality? Or do i have to apply both to get a task only to run on one server and also prevent from running again before finishing?

So to speak: Do i have to do: ->withoutOverlapping()->withoutOverlappingMultiServer() ?

Thanks, volker

jdavidbakr commented 7 years ago

Using both would be redundant. The withoutOverlappingMultiServer() will prevent the function from running locally a second time in the same way that it would prevent it from running on another server.