Skip to content

Monitored tags not displaying recent or failed jobs #1478

Closed
@therobfonz

Description

@therobfonz

Horizon Version

5.25.0

Laravel Version

10.48.14

PHP Version

8.3.8

Redis Driver

PhpRedis

Redis Version

6.2.6

Database Driver & Version

Postgis 14 for Ubuntu 22.04

Description

We have several jobs that have tags defined in them for horizon to use

public function tags(): array
    {
        return ['customer-teams-migration'];
    }

When visiting horizon/monitoring, and adding a tag to monitor, I can see the tag and the count just fine.
Screenshot 2024-07-22 at 4 09 44 PM

However, when clicking into that monitored tag to see the most recent or failed jobs, the loading indicator just keeps spinning and the following error is thrown

Too few arguments to function Laravel\\Horizon\\Http\\Controllers\\MonitoringController::paginate(), 1 passed in 

Steps To Reproduce

  1. Add a tag definition to any job
  2. Go into Horizon and add that tag to be monitored
  3. Drop a job with that tag into the queue and let it finish
  4. Go to horizon/monitoring and click on the monitored tag name to view the details. The loading indicator will just spin and throw the network error mentioned above

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions