Skip to content

Commit 4ff605e

Browse files
committed
Prevent attempting to boot workers on CLI calls
1 parent 0a83fa6 commit 4ff605e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/NativeServiceProvider.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,10 @@ protected function configureApp()
119119
config(['session.driver' => 'file']);
120120
config(['queue.default' => 'database']);
121121

122-
$this->fireUpQueueWorkers();
122+
// XXX: This logic may need to change when we ditch the internal web server
123+
if (! $this->app->runningInConsole()) {
124+
$this->fireUpQueueWorkers();
125+
}
123126
}
124127

125128
protected function rewriteStoragePath()

0 commit comments

Comments
 (0)