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

Log output is hard to read if multiple jobs handled by one host #1216

Closed
marcroberts opened this issue Nov 11, 2022 · 1 comment
Closed

Log output is hard to read if multiple jobs handled by one host #1216

marcroberts opened this issue Nov 11, 2022 · 1 comment
Assignees

Comments

@marcroberts
Copy link

  • Horizon Version: 5.10.2
  • Laravel Version: 9.36.0
  • PHP Version: 8.0.24

Description:

Log output is difficult to read with the new Laravel Artisan output formatting, if a slow-running job is handled at the same time as quicker one(s) on the same host.

2022-11-11 13:50:44 App\Jobs\--REDACTED-------- ............... 40.12ms DONE
2022-11-11 13:50:44 App\Jobs\--REDACTED-------- ............... 35.42ms DONE
2022-11-11 13:50:44 App\Jobs\--REDACTED-- 2022-11-11 13:50:44 App\Notifications\--REDACTED---- 2022-11-11 13:50:44 App\Notifications\--REDACTED---- ..................... 71.48ms DONE
2022-11-11 13:50:44 App\Jobs\--REDACTED-- ..................... 55.35ms DONE
2022-11-11 13:50:44 App\Jobs\--REDACTED-------- ................ 6.06ms DONE
2022-11-11 13:50:44 App\Jobs\--REDACTED------- 2022-11-11 13:50:44 App\Jobs\--REDACTED--------- ............... 40.15ms DONE
2022-11-11 13:50:44 App\Jobs\--REDACTED-------- ............... 30.38ms DONE
2022-11-11 13:50:44 App\Jobs\--REDACTED------------- ......... 826.71ms DONE
........ 881.19ms DONE
2022-11-11 13:50:45 App\Notifications\--REDACTED---- ......... 602.10ms DONE
2022-11-11 13:50:45 App\Jobs\--REDACTED------ ................ 708.01ms DONE
............... 689.42ms DONE
......... 685.98ms DONE
2022-11-11 13:50:45 App\Notifications\--REDACTED---- ......... 554.94ms DONE

This also affected the output of database migrations and has been fixed there.

I wasn't sure if this should be reported here or in the Laravel repository

Steps To Reproduce:

  • Queue multiple jobs, with a mixture of running times
  • Process the queue with one host running multiple processes
@driesvints
Copy link
Member

We've sent in a PR to framework to improve this. It'll be released on Tuesday. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants