diff --git a/api/TaskOperation/Composer/CloudOperation.php b/api/TaskOperation/Composer/CloudOperation.php index 0db19b9f..2666c874 100644 --- a/api/TaskOperation/Composer/CloudOperation.php +++ b/api/TaskOperation/Composer/CloudOperation.php @@ -317,8 +317,8 @@ private function getCurrentJob(): ?CloudJob } try { - if ($content = $this->taskConfig->getState('cloud-job-status')) { - $this->job = new CloudJob(JsonFile::parseJson($content)); + if (\is_array($content = $this->taskConfig->getState('cloud-job-status'))) { + $this->job = new CloudJob($content); if (null !== $this->taskConfig->getState('cloud-job-successful')) { $this->output = $this->taskConfig->getState('cloud-job-output');