File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99namespace OCA \Libresign \Migration ;
1010
11- use OCA \Libresign \Service \Worker \ WorkerStopper ;
11+ use OCA \Libresign \Service \Process \ ProcessManager ;
1212use OCP \Migration \IOutput ;
1313use OCP \Migration \IRepairStep ;
1414use Psr \Log \LoggerInterface ;
1515
1616class StopRunningWorkers implements IRepairStep {
17+ private const PROCESS_SOURCE = 'worker ' ;
18+
1719 public function __construct (
18- private WorkerStopper $ stopper ,
20+ private ProcessManager $ processManager ,
1921 private LoggerInterface $ logger ,
2022 ) {
2123 }
@@ -28,7 +30,7 @@ public function getName(): string {
2830 #[\Override]
2931 public function run (IOutput $ output ): void {
3032 try {
31- $ stopped = $ this ->stopper ->stopAll ();
33+ $ stopped = $ this ->processManager ->stopAll (self :: PROCESS_SOURCE , SIGTERM );
3234 if ($ stopped > 0 ) {
3335 $ output ->info ('Stopped ' . $ stopped . ' LibreSign worker(s). ' );
3436 }
You can’t perform that action at this time.
0 commit comments