Skip to content

Commit

Permalink
🔒 chore: add lock for scheduled tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ellermister committed Jan 31, 2025
1 parent b5ed867 commit 306d426
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions routes/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

Schedule::call(function () {
Artisan::call('app:update-fav');
})->everyFiveMinutes();
})->withoutOverlapping()
->everyFiveMinutes();

Schedule::call(function () {
Artisan::call('app:download-video');
})->everyFiveMinutes();
})->withoutOverlapping()->everyFiveMinutes();

Schedule::call(function () {
Artisan::call('app:download-danmaku');
})->everyOddHour();
})->withoutOverlapping()->everyOddHour();

0 comments on commit 306d426

Please sign in to comment.