From d5d661184f7969fdc82a4fbafc4ce08542a2766d Mon Sep 17 00:00:00 2001 From: Mohamed Jinas Date: Sat, 3 Oct 2020 20:18:00 +0500 Subject: [PATCH] Switched to background process tasks --- app/Console/Kernel.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index aefec2f..d8e01d6 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -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() + $schedule->command('scrape:vnews')->everyFiveMinutes() + ->runInBackground() ->pingOnSuccess(env('APP_URL') . "/api/ping/vnews"); }