-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Update concurrency.md #9893
Update concurrency.md #9893
Conversation
digitall-it
commented
Sep 13, 2024
- Add requirements of spatie/fork
- Show example on how to switch drivers
- Explain that the defer method will never run the tasks in the PHP CLI's context
- Add requirements of spatie/fork - Show example on how to switch drivers - Explain that the defer method will never run the tasks in the PHP CLI's context
Tasks will run in CLI but before Command exits, not in background |
@decadence I will have to create a minimum use case for this in the next minutes, but seems like tasks will not run at all if using the defer method in the CLI, only from the browser. In my project, tasks would simply never run. Allow me to check and report. |
@decadence uhm it seems like a bug in the defer method or something wrong in the way I use it. The error I'm seeing is as follows:
File is present at
Maybe my fresh install is missing something. Here's the minimum use cases, it doesn't seem to work either in CLI or in a web page. In
then try navigating The same via CLI, in
while in
issuing |
When I tried Illuminate\Contracts\Container\BindingResolutionException
Unresolvable dependency resolving [Parameter #0 [ <required> $app ]] in class Illuminate\Support\MultipleInstanceManager On fresh Laravel 11 app defer works in CLI but it just registers function for |
@decadence did you issue a |
@digitall-it |
@decadence sorry didn't read second part on the fresh installation. Latest Laravel version is 11.23.4. Try updating. |
Updated to 11.23.4. Same result. |
is it possible to post here the code that isn't working out for you? I fear yours is a serialization problem. |
Made adjustments. |