Files
boursecu_server/app/Console/Commands/RunAutomationsCommand.php
T
2026-08-23 14:16:00 +03:30

21 lines
451 B
PHP

<?php
namespace App\Console\Commands;
use App\Services\Automation\AutomationEngine;
use Illuminate\Console\Command;
class RunAutomationsCommand extends Command
{
protected $signature = 'automations:run';
protected $description = 'اجرای اتوماسیون‌های زمان‌دار و صف تأخیر';
public function handle(AutomationEngine $engine): int
{
$engine->runDue();
return self::SUCCESS;
}
}