Laravel Artisan Schedulers configured in app/console/kernel.php are not Creating Mutex files, thus WithoutOverlapping never working. However I never get errors. Those files are supposed to be at storage/frameworks/ right?
Due to overlaps of Artisan Commands, my data geting duplicated.
Sample commands written in kernel.php :
$schedule->command('clear:logFiles')->everyMinute()->withoutOverlapping();
$schedule->command('validate:sslCommerzTransactions')->withoutOverlapping()->everyTenMinutes();
$schedule->command('send:queuedTelegramNotifications')->withoutOverlapping()->everyMinute();
$schedule->command('send:queuedRewardNotifications')->withoutOverlapping()->everyMinute();
I also made a custom function to test, but I see no mutex file:
$schedule->call(function () {
sleep(900);
})->name("test")->withoutOverlapping(2);
Is there anything I can do to confirm is my mutex lock files really generating/working or not?
I have configured cache table and set cache_driver to database, now I see no entries there. Though my Artisan commands are running now. Strange?
My Use case: I want to prevent overlapping. I mean if a command execution is running, Laravel should it run it until the previous execution is finished, whater timely is configured.
Please help. any info needed? I will provide.
My Laravel version is 5.8 and Cache Driver: file, db both tested
withoutOverlappingmeans that this particular scheduled command should not overlap with itself if one instance runs until it's scheduled to run again. Your wording seems to imply you're expecting the different commands to not overlap each other