Skip to content

Commit 3228b98

Browse files
committed
feat: artisan commands in bundles
1 parent f2584d0 commit 3228b98

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/QueueWorker.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ public function up(string|QueueConfig $config): void
3232
"--memory={$config->memoryLimit}",
3333
"--timeout={$config->timeout}",
3434
],
35-
$config->alias,
35+
'queue_'.$config->alias,
3636
persistent: true,
37+
iniSettings: [
38+
'memory_limit' => "{$config->memoryLimit}M",
39+
]
3740
);
3841
}
3942

4043
public function down(string $alias): void
4144
{
42-
$this->childProcess->stop($alias);
45+
$this->childProcess->stop('queue_'.$alias);
4346
}
4447
}

0 commit comments

Comments
 (0)