Skip to content

Pending job number seems incorrect #1311

@jasonmccreary

Description

@jasonmccreary

Horizon Version

5.19.1

Laravel Version

10.19.0

PHP Version

8.2.9

Redis Driver

Predis

Redis Version

1.1.10

Database Driver & Version

No response

Description

It appears the "Pending Jobs" number may be incorrect or misleading when there are failed jobs. This batch is complete and 160 did fail. However, no more are pending.

Screenshot 2023-09-05 at 7 47 17 PM

I would expect this number to be 0 since the batch is complete. Or, if it is to indicate the number of "Incomplete Jobs", then maybe that should have a separate title. Depending on the direction, the "Completed Jobs" and its subtitle might need to be adjusted as currently I would expect it to be 484.

I see the same thing for all my recent batched jobs with failures - the "Pending Jobs" and "Failed Jobs" numbers are the same.

Steps To Reproduce

Run a batched job with some failures. You should see "Pending Jobs" and "Failed Jobs" are the same number.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions