Switched to background process tasks

This commit is contained in:
2020-10-03 20:18:00 +05:00
parent 747dd5d11f
commit d5d661184f

View File

@@ -26,45 +26,59 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule)
{
$schedule->command('scrape:mihaaru')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/mihaaru");
$schedule->command('scrape:sun')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/sun");
$schedule->command('scrape:avas')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/avas");
$schedule->command('scrape:dhuvas')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/dhuvas");
$schedule->command('scrape:thiladhun')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/thiladhun");
$schedule->command('scrape:thepress')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/thepress");
$schedule->command('scrape:addulive')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/addulive");
$schedule->command('scrape:voice')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/voice");
$schedule->command('scrape:dhen')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/dhen");
$schedule->command('scrape:psm')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/psm");
$schedule->command('scrape:oneonline')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/oneonline");
$schedule->command('scrape:feshun')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/feshun");
$schedule->command('scrape:miadhu')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/miadhu");
$schedule->command('scrape:vnews')->everyFiveMinutes()
->runInBackground()
->pingOnSuccess(env('APP_URL') . "/api/ping/vnews");
}