21 lines
451 B
PHP
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;
|
||
|
|
}
|
||
|
|
}
|