add scheduler execute scraping data daily midnight

This commit is contained in:
arifal hidayat
2025-01-26 02:21:02 +07:00
parent 9aab6f899d
commit 8e819eedb5
5 changed files with 56 additions and 16 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace App\Console\Commands;
use App\ServiceSIMBG;
use Illuminate\Console\Command;
use \Illuminate\Support\Facades\Log;
class ExecuteScraping extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'app:execute-scraping';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Execure scraping service daily every 12 pm';
/**
* Execute the console command.
*/
public function handle()
{
Log::info("running scheduler daily scraping");
$service = new ServiceSIMBG();
$service->syncTaskList();
}
}