Skip to content

[9.x] Improves queue:work command#43252

Merged
taylorotwell merged 9 commits into
9.xfrom
fix/queue-work-on-fails
Jul 18, 2022
Merged

[9.x] Improves queue:work command#43252
taylorotwell merged 9 commits into
9.xfrom
fix/queue-work-on-fails

Conversation

@nunomaduro

@nunomaduro nunomaduro commented Jul 18, 2022

Copy link
Copy Markdown
Member

This pull request fixes two things:

  • The first, is when the job class code contains a $this->fail():

In Laravel v9.19.0:
Screenshot 2022-07-18 at 09 17 38

In 9.x-dev:
Screenshot 2022-07-18 at 12 20 06

If this pull request gets merged:
Screenshot 2022-07-18 at 09 18 04

  • The second, is when jobs a requeued to be retried later:

In Laravel v9.19.0:
Screenshot 2022-07-18 at 12 02 56

In 9.x-dev:
Screenshot 2022-07-18 at 12 03 47

If this pull request gets merged:
Screenshot 2022-07-18 at 15 13 14

@nunomaduro nunomaduro requested a review from taylorotwell July 18, 2022 11:21
@nunomaduro nunomaduro marked this pull request as draft July 18, 2022 11:32
@nunomaduro nunomaduro marked this pull request as ready for review July 18, 2022 14:14
@taylorotwell taylorotwell merged commit d425952 into 9.x Jul 18, 2022
@taylorotwell taylorotwell deleted the fix/queue-work-on-fails branch July 18, 2022 21:02
@ReDev1L

ReDev1L commented Sep 8, 2022

Copy link
Copy Markdown

image
Thats what we got in datadog after this PR

$job->resolveName()

resolves multiline closures.

Those workers shouldnt output anything to console without PSR-3 loggers.

Our loggers stuck in between those logs and we recieve combined strings, becouse you use output->write instead of output->writeln

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants