{"record":{"id":"0b8229fabc51437c","repo":"coollabsio/coolify","slug":"scheduledtaskjob-failed-no-resource-found","errorCode":null,"errorMessage":"ScheduledTaskJob failed: No resource found.","messagePattern":"ScheduledTaskJob failed: No resource found\\.","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"app/Jobs/ScheduledTaskJob.php","lineNumber":86,"sourceCode":"        $this->onQueue(crons_queue());\n\n        $this->task = $task;\n        $this->timeout = $this->task->timeout ?? 300;\n    }\n\n    private function initializeExecutionContext(): void\n    {\n        $this->task->loadMissing([\n            'service.destination.server.settings',\n            'application.destination.server.settings',\n        ]);\n\n        if ($this->task->service) {\n            $this->resource = $this->task->service;\n        } elseif ($this->task->application) {\n            $this->resource = $this->task->application;\n        } else {\n            throw new \\RuntimeException('ScheduledTaskJob failed: No resource found.');\n        }\n\n        $this->team = Team::findOrFail($this->task->team_id);\n        $this->server_timezone = $this->getServerTimezone();\n        $this->server = $this->resource->destination->server;\n    }\n\n    private function getServerTimezone(): string\n    {\n        if ($this->resource instanceof Application) {\n            return $this->resource->destination->server->settings->server_timezone;\n        } elseif ($this->resource instanceof Service) {\n            return $this->resource->server->settings->server_timezone;\n        }\n\n        return 'UTC';\n    }\n","sourceCodeStart":68,"sourceCodeEnd":104,"githubUrl":"https://github.com/coollabsio/coolify/blob/70b9acc42467278373e00de77abb40684e25b395/app/Jobs/ScheduledTaskJob.php#L68-L104","documentation":"Error \"ScheduledTaskJob failed: No resource found.\" thrown in coollabsio/coolify.","triggerScenarios":"Thrown at app/Jobs/ScheduledTaskJob.php:86 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"70b9acc42467278373e00de77abb40684e25b395","analyzedAt":"2026-08-17T01:41:01.313Z","schemaVersion":2},"datasetVersion":"2026-08-17T04:17:16.089Z"}