<?php


/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/

use App\Console\Invokables\CheckScheduledPublications;
use Illuminate\Support\Facades\Schedule;


Schedule::call(new CheckScheduledPublications())
    ->everyMinute()
    ->name('check-scheduled-publications')
    ->withoutOverlapping()
    ->onOneServer();

/*
Schedule::command('projects:sync --notify')
    ->twiceDaily(8, 20)
    ->name('project-sync-schedule')
    ->withoutOverlapping()
    ->onOneServer();
*/

Schedule::command('language:generate-translation')
    ->everyFiveMinutes()
    ->name('generate-translation-schedule')
    ->withoutOverlapping()
    ->onOneServer();
