-
-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
It would be nice to be able to do this
'Queue' => Command::from('php artisan queue:listen --tries=1')->lazy()->autorestart(),
Then not only is this command only started when you explicitly start it, but it will also restart the command if it fails for any reason. Without lazy()
it still just auto restarts auto started commands.
This is good for commands that may fail for some reason but your only option is to restart it. I keep getting this on the queue listen command above after 60 second timeout and I don't know why that happens, so instead of noticing it manually and having to hit restart it would be nice for solo to allow me to just say "this command may fail at some point, just restart it"
Also I can fully submit a PR for this, but I figured we can discuss it before I just blindly submit something
Metadata
Metadata
Assignees
Labels
No labels