Skip to content

Commit

Permalink
Merge branch 'metrics-proposal' into 5.x
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 27, 2020
2 parents 89c34fb + 59221e9 commit 8dba04a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Console/SnapshotCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class SnapshotCommand extends Command
*/
public function handle(Lock $lock, MetricsRepository $metrics)
{
if ($lock->get('metrics:snapshot', 300)) {
if ($lock->get('metrics:snapshot', config('horizon.metrics.snapshot_lock', 300) - 30)) {
$metrics->snapshot();

$this->info('Metrics snapshot stored successfully.');
Expand Down

0 comments on commit 8dba04a

Please sign in to comment.