Skip to content

[5.3] queue:work and __destruct() behaviour #18539

@nowak-ninja

Description

@nowak-ninja
  • Laravel Version: 5.3
  • PHP Version: 7.0
  • Database Driver & Version: MySQL 5.7

Description:

When I run queue:work the __destruct() method on Job itself isn't called until next job will be processed on queue - queue:listen works fine. Is this by design?

Steps To Reproduce:

Just dispatch any job containing __destruct() method which writes something to log file and see that it will do nothing until next job lands into queue and will be processed.

Metadata

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