Skip to content

Commit

Permalink
Give names to default schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
hsemix committed Nov 30, 2023
1 parent 08dafae commit 2c0c6f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Yuga/Scheduler/SchedulerServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ public function boot()
{
if ($this->scheduler) {
if (env('RUN_DB_BACKUP', false)) {
$this->scheduler->command('db:backup')->daily('4:30 am')->runInBackground();
$this->scheduler->command('db:backup')->daily('4:30 am')->runInBackground()->named('Database Backup Dump');
}

if (env('RUN_QUEUE_WORKER', false)) {
$this->scheduler->command('queue:work --stop')->everyMinute()->withoutOverlapping()->runInBackground();
$this->scheduler->command('queue:work --stop')->everyMinute()->withoutOverlapping()->runInBackground()->named('Queue Worker');
}

$this->schedule($this->scheduler);
Expand Down

0 comments on commit 2c0c6f0

Please sign in to comment.