Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/turbo124/beacon
Browse files Browse the repository at this point in the history
  • Loading branch information
turbo124 committed Apr 7, 2021
2 parents 660b2f7 + d48227f commit 22bc2c1
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/CollectorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ public function register()
return new Collector;
});

/* Register the scheduler */
$this->app->booted(function () {
$schedule = app(Schedule::class);
$schedule->job(new BatchMetrics())->everyFiveMinutes();
});

if(config('beacon.enabled'))
{
/* Register the scheduler */
$this->app->booted(function () {
$schedule = app(Schedule::class);
$schedule->job(new BatchMetrics())->everyFiveMinutes();
});
}
}
}

0 comments on commit 22bc2c1

Please sign in to comment.