Scheduler using withoutOverlapping and memcache #37085
Unanswered
Manikandan85
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
Hello,
I have configured a scheduler command which runs for every 5 minutes and uses withoutOverlapping.
$schedule->command('command:tempCommand')->timezone('America/Chicago')
->everyTwoMinutes()
->withoutOverlapping()
->sendOutputTo('/tmp/output_results_' . date('d-M-Y Hi') . '.txt');
But when I ran php artisan schedule:work to see the output, that scheduler doesn't get executed. On debugging, it seems it uses "CacheEventMutex" file which saves the schedule expression as a key and blocks the command if it exists.
And I am using "memcache" as a default cache driver. But it seems the cache key doesn't get cleared.
Beta Was this translation helpful? Give feedback.
All reactions