| 12345678910111213141516171819202122232425 |
- <?php
- namespace App\Tasks;
- use Illuminate\Support\Facades\Artisan;
- use Illuminate\Support\Facades\Log;
- use Throwable;
- class SyncStaleDiditVerifications
- {
- public function __invoke(): void
- {
- try {
- Artisan::call('didit:sync', ['--stale-hours' => 6, '--limit' => 100]);
- Log::channel('didit')->info('Reconciliacao agendada concluida', [
- 'saida' => trim(Artisan::output()),
- ]);
- } catch (Throwable $e) {
- Log::channel('didit')->error('Falha na reconciliacao agendada', [
- 'exception' => $e->getMessage(),
- ]);
- }
- }
- }
|