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?
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
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire