Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpar06 authored and StyleCIBot committed Nov 17, 2024
1 parent cc3a059 commit 6b1e0f7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
4 changes: 2 additions & 2 deletions app/Providers/HorizonServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ public function boot(): void
protected function gate(): void
{
Gate::define('viewHorizon', function ($user) {
// By default only allow the first user to view the horizon dashboard
// By default only allow the first user to view the horizon dashboard
// TODO: use an env key for this?
return in_array($user->id, [
1
1,
]);
});
}
Expand Down
35 changes: 17 additions & 18 deletions config/horizon.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use Illuminate\Support\Str;

return [

/*
|--------------------------------------------------------------------------
| Horizon Domain
Expand Down Expand Up @@ -99,12 +98,12 @@
*/

'trim' => [
'recent' => 60,
'pending' => 60,
'completed' => 60,
'recent' => 60,
'pending' => 60,
'completed' => 60,
'recent_failed' => 10080,
'failed' => 10080,
'monitored' => 10080,
'failed' => 10080,
'monitored' => 10080,
],

/*
Expand Down Expand Up @@ -135,7 +134,7 @@

'metrics' => [
'trim_snapshots' => [
'job' => 24,
'job' => 24,
'queue' => 24,
],
],
Expand Down Expand Up @@ -181,24 +180,24 @@

'defaults' => [
'supervisor-1' => [
'connection' => 'redis',
'queue' => ['default'],
'balance' => 'auto',
'connection' => 'redis',
'queue' => ['default'],
'balance' => 'auto',
'autoScalingStrategy' => 'time',
'maxProcesses' => 1,
'maxTime' => 0,
'maxJobs' => 0,
'memory' => 128,
'tries' => 1,
'timeout' => 60,
'nice' => 0,
'maxProcesses' => 1,
'maxTime' => 0,
'maxJobs' => 0,
'memory' => 128,
'tries' => 1,
'timeout' => 60,
'nice' => 0,
],
],

'environments' => [
'production' => [
'supervisor-1' => [
'maxProcesses' => 10,
'maxProcesses' => 10,
'balanceMaxShift' => 1,
'balanceCooldown' => 3,
],
Expand Down

0 comments on commit 6b1e0f7

Please sign in to comment.