Skip to content

Missing data in failed jobs view #1549

@bert-w

Description

@bert-w

Horizon Version

5.x

Laravel Version

12.x

PHP Version

8.x

Redis Driver

PhpRedis

Redis Version

6.x

Database Driver & Version

No response

Description

Apparently, Horizon has multiple urls to view a failed job which is confusing.

One can be accessed for instance using Monitoring->[click tag]->Tab "Failed jobs"->[click job]:
https://example.com/horizon/jobs/failed/36136d81-04b2-40e2-ac67-080dc361d342

The other one is accessed from the Failed Jobs main menu Failed Jobs -> [click job]:
https://example.com/horizon/failed/36136d81-04b2-40e2-ac67-080dc361d342

However only the bottom one shows this exception information box and other useful info:

Image

while BOTH have it in their API response. Why are these pages different and show different stats? They both use a different API route but they run exactly the same code to request the job information:

  • \Laravel\Horizon\Http\Controllers\JobsController@show as /jobs/failed/{id}
  • \Laravel\Horizon\Http\Controllers\FailedJobsController@show as /jobs/{id}
  • (both calls are the same)

Steps To Reproduce

Described above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions