Skip to content

Commit 4989a3b

Browse files
committed
Fix schedule error
1 parent 306d426 commit 4989a3b

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

routes/console.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,21 @@
44

55
Schedule::call(function () {
66
Artisan::call('app:update-fav');
7-
})->withoutOverlapping()
8-
->everyFiveMinutes();
7+
})
8+
->name('update-fav')
9+
->withoutOverlapping()
10+
->everyTenMinutes();
911

1012
Schedule::call(function () {
1113
Artisan::call('app:download-video');
12-
})->withoutOverlapping()->everyFiveMinutes();
14+
})
15+
->name('download-video')
16+
->withoutOverlapping()
17+
->everyTenMinutes();
1318

1419
Schedule::call(function () {
1520
Artisan::call('app:download-danmaku');
16-
})->withoutOverlapping()->everyOddHour();
21+
})
22+
->name('download-danmaku')
23+
->withoutOverlapping()
24+
->dailyAt('00:00');

0 commit comments

Comments
 (0)