What were you trying to do?
QueueWorker::up(alias: 'default');
What happened?
Error about alias not existing.
How to reproduce the bug
Do same thing.
Debug Output
not relevant
Which operating systems have you seen this occur on?
Linux
Notes
I'm including the relevant parts below so you don't have to surf the code base. These are pulled form the current published docs and the main branch (which matches the current release). The docs, interface, and base class all disagree.
Docs
use Native\DTOs\QueueConfig;
use Native\Laravel\Facades\QueueWorker;
$queueConfig = new QueueConfig(alias: 'manual', queuesToConsume: ['default'], memoryLimit: 1024, timeout: 600);
QueueWorker::up($queueConfig);
// Alternatively, if you already have the worker config in your config/nativephp.php file, you may simply use its alias:
QueueWorker::up(alias: 'manual');
// Later...
QueueWorker::down(alias: 'manual');
Interface
interface QueueWorker
{
public function up(QueueConfig $config): void;
public function down(string $alias): void;
}
QueueWorker
public function up(string|QueueConfig $config): void {
// ...
}
What were you trying to do?
QueueWorker::up(alias: 'default');What happened?
Error about alias not existing.
How to reproduce the bug
Do same thing.
Debug Output
not relevant
Which operating systems have you seen this occur on?
Linux
Notes
I'm including the relevant parts below so you don't have to surf the code base. These are pulled form the current published docs and the main branch (which matches the current release). The docs, interface, and base class all disagree.
Docs
Interface
QueueWorker