From 00ae88b6b6f0eeb2056a1a28b5e4350d3d73e632 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 31 Mar 2023 09:41:41 +0200 Subject: [PATCH] fix: add inprogress activity --- app/Actions/RemoteProcess/RunRemoteProcess.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/Actions/RemoteProcess/RunRemoteProcess.php b/app/Actions/RemoteProcess/RunRemoteProcess.php index 038b681a8..fbd62df91 100644 --- a/app/Actions/RemoteProcess/RunRemoteProcess.php +++ b/app/Actions/RemoteProcess/RunRemoteProcess.php @@ -41,6 +41,9 @@ class RunRemoteProcess public function __invoke(): ProcessResult { + $this->activity->properties = $this->activity->properties->merge([ + 'status' => ProcessStatus::IN_PROGRESS, + ]); $this->timeStart = hrtime(true); $processResult = Process::run($this->getCommand(), $this->handleOutput(...));