Skip to content

[5.3] [Queue] queue:listen default value maxTries=0 let every job fail with a MaxAttemptsExceededException #15370

Closed
@larsbo

Description

  • Laravel Version: 5.3.7
  • PHP Version: 7.0.4
  • Database Driver & Version: MySQL 5.5.39

Description:

When I run queue:listen it spawns new child processes like this by default:
artisan queue:work --once --queue=default --delay=0 --memory=128 --sleep=3 --tries=0 --env=production

This causes a MaxAttemptsExceededException for every single job and make it fail instantly without a single try. If I set maxTries to something larger than 0 the job are correctly processed.

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