Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.0] Allow custom dashboard failed jobs metric period #644

Merged
merged 1 commit into from
Aug 8, 2019
Merged

[3.0] Allow custom dashboard failed jobs metric period #644

merged 1 commit into from
Aug 8, 2019

Conversation

derekmd
Copy link
Contributor

@derekmd derekmd commented Aug 6, 2019

Enhancement: #637

Add config('horizon.trim.recent_failed') to control the dashboard "Failed Jobs" metric period. A typical use case is for Horizon to track the exceptions across the past 7 days but the dashboard only shows the failure count from the past 24 hours.

By default, it will fallback to config('horizon.failed') (past 7 days) since Laravel Horizon 3.0 installs will be missing config/horizon.php key 'recent_failed'. This makes the 3.0 branch continue to behave as normal to users unaware this can be changed with a new config key.

The 4.0 branch can probably remove this fallback for a hardcoded 10080 minutes / 7 days.

Add config('horizon.trim.recent_failed')
to control the dashboard "Failed Jobs"
metric period. By default, it will be
the past 7 days.
@taylorotwell taylorotwell merged commit ffc53a8 into laravel:3.0 Aug 8, 2019
@derekmd derekmd deleted the dashboard-failed-job-count-config-filter branch August 8, 2019 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants