use low priority queue for tasks

This commit is contained in:
Dane Everitt 2016-10-27 16:35:50 -04:00
parent 59c29dc3a6
commit bb96039bf1
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -74,7 +74,7 @@ class RunTasks extends Command
foreach ($tasks as &$task) { foreach ($tasks as &$task) {
$bar->advance(); $bar->advance();
$this->dispatch(new SendScheduledTask(Models\Server::findOrFail($task->server), $task)); $this->dispatch((new SendScheduledTask(Models\Server::findOrFail($task->server), $task))->onQueue('low'));
} }
$bar->finish(); $bar->finish();