This commit is contained in:
Axel 2021-12-20 22:19:44 +01:00
parent 696d7fd299
commit 1cc4ac9a95
2 changed files with 1 additions and 6 deletions

View file

@ -51,7 +51,6 @@ class RunMonitoring extends Command
$rounds = $this->argument('rounds') ?? $this->rounds; $rounds = $this->argument('rounds') ?? $this->rounds;
// Getting pending tasks // Getting pending tasks
try {
$tasks = DB::table('tasks') $tasks = DB::table('tasks')
->where(function($query) { ->where(function($query) {
$query->whereRaw('DATE_SUB(now(), INTERVAL frequency SECOND) > last_execution'); $query->whereRaw('DATE_SUB(now(), INTERVAL frequency SECOND) > last_execution');
@ -62,10 +61,6 @@ class RunMonitoring extends Command
->take($rounds) ->take($rounds)
->get() ->get()
; ;
}
catch (Exception $e) {
echo 'ERROR : '.$e->getMessage();
}
if (is_null($tasks) || count($tasks) == 0) { if (is_null($tasks) || count($tasks) == 0) {
$this->info('No task to process, going back to sleep'); $this->info('No task to process, going back to sleep');

View file

@ -19,7 +19,7 @@ class SyncCustomers extends Command
* *
* @var string * @var string
*/ */
protected $signature = 'customers:sync'; protected $signature = 'monitolite:customers:sync';
/** /**
* The console command description. * The console command description.