mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 07:22:34 +00:00
Migrate queues to Horizon (#621)
This commit is contained in:
@ -21,7 +21,7 @@ public function start(Worker $worker): void
|
||||
$handler->start($worker->id, $worker->site_id);
|
||||
$worker->status = WorkerStatus::RUNNING;
|
||||
$worker->save();
|
||||
})->onConnection('ssh');
|
||||
})->onQueue('ssh');
|
||||
}
|
||||
|
||||
public function stop(Worker $worker): void
|
||||
@ -36,7 +36,7 @@ public function stop(Worker $worker): void
|
||||
$handler->stop($worker->id, $worker->site_id);
|
||||
$worker->status = WorkerStatus::STOPPED;
|
||||
$worker->save();
|
||||
})->onConnection('ssh');
|
||||
})->onQueue('ssh');
|
||||
}
|
||||
|
||||
public function restart(Worker $worker): void
|
||||
@ -51,6 +51,6 @@ public function restart(Worker $worker): void
|
||||
$handler->restart($worker->id, $worker->site_id);
|
||||
$worker->status = WorkerStatus::RUNNING;
|
||||
$worker->save();
|
||||
})->onConnection('ssh');
|
||||
})->onQueue('ssh');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user