activity = coolifyProcess($this->command, 'testing-host'); // Override manual to experiment // $sleepingBeauty = 'x=1; while [ $x -le 40 ]; do sleep 0.1 && echo "Welcome $x times" $(( x++ )); done'; // // $commandString = <<activity = coolifyProcess($commandString, 'testing-host'); $this->isKeepAliveOn = true; } public function polling() { $this->activity?->refresh(); if ($this->activity?->properties['status'] === 'finished') { $this->isKeepAliveOn = false; } } }