Skip to content

Debounced jobs only working through Dispatchable::dispatch? #60310

Description

@osteel

Laravel Version

13.12.0

PHP Version

8.4

Database Driver & Version

No response

Description

While testing debounced jobs, I noticed that they seemed to be processed immediately when dispatched through Illuminate\Bus\Dispatcher, and correctly delayed when using the Dispatchable::dispatch method.

Taking a closer look, I can see that the latter returns an instance of PendingDispatch (and so does the dispatch() helper), but the former doesn't. This isn't documented as far as I can tell, and I would expect Illuminate\Bus\Dispatcher::dispatch to behave in a similar way.

Steps To Reproduce

Dispatch a job using either method and observe the difference.

Activity

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

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