You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No queue specified and no default queue configured #5
## Bug description`leaf queue:work` ignores the configured default queue when the optional `--queue` option is omitted. It reports:
> No queue specified and no default queue configured. Set `default` in your queue config or pass --queue.
The application has a valid default queue configured, and `MvcConfig('queue')` returns it correctly.
## Steps to reproduce1. Configure a default queue:
```php
return [
'default' => 'database',
'connections' => [
'database' => [
'driver' => 'database',
// ...
],
],
];
Run:
leaf queue:work
The command reports that no queue is configured instead of using database.
Expected behavior
When --queue is omitted, the worker should use the default value from the queue configuration.
Actual behavior
The worker reports that no queue is configured, even though MvcConfig('queue')['default'] contains database.
Proposed solution
In QueueWorkCommand::resolveQueueConnection(), treat an empty option like an omitted option when selecting the queue:
$queue = $option ?: ($config['default'] ?? null);
This allows the configured default to be used when Sprout returns an empty string for the missing optional --queue option. Explicit queue names continue to take precedence.
Activity
BadrtSoft commentedon Oct 27, 2026
resolved Here