Horizon: more information on status, retries, planned exection datetime, would be lovely

Created on 2 Mar 2019  路  5Comments  路  Source: laravel/horizon

I am having issues with jobs being queued and then just ignored.. they remain with the orange status icon indefinitely, while new jobs of the same type will get executed and become green

the ones that remain orange, I have no idea why, there is no error, they do not end up in the failed job section. These are short running jobs that should take no longer than 2 or 3 seconds to execute.

I would love for a way to know more about why a job is stuck. It would be nice to see if jobs are being retried, why not have a "try" column to see if they run on first try or N try (in the case where a retry of 3 is set for example)

also I can see when jobs were "queued" but not when they actually ran. It's very frustrating seeing these jobs get stuck for no reason. I'm using the newly released V3 by the way. I like the new UI but it's still lacking in terms of information available for debugging IMO.

enhancement

Most helpful comment

@driesvints

I'd love to take a crack at adding some of this stuff. Are you open to PRs?

All 5 comments

I'll need more info and/or code to debug this further. Please post relevant code like models, jobs, commands, notifications, events, listeners, controller methods, routes, etc. You may use https://paste.laravel.io to post larger snippets or just reply with shorter code snippets. Thanks!

i ended up resolving my issue. i was doing thing in the constructor that were not meant to be there and needed to be moved to the handle method. i had not realized that the constructor gets called as soon as a job is queued as opposed to only once it is "handled"

in any case this is more of a feature request than dealing with a specific issue. It would be nice to. For example the tries/retries, it would be nice to be able to see this in the UI, when a job succeeded on the first try vs the Nth try

@driesvints

I'd love to take a crack at adding some of this stuff. Are you open to PRs?

@atymic definitely

Hey all, this is not something we'll be working on ourselves but we're still open to PRs for this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sojeda picture sojeda  路  5Comments

pmartelletti picture pmartelletti  路  4Comments

mikeminckler picture mikeminckler  路  3Comments

wturrell picture wturrell  路  5Comments

crash13override picture crash13override  路  5Comments