coollabsio/coolify · error · RuntimeException

ScheduledTaskJob failed: No resource found.

Error message

ScheduledTaskJob failed: No resource found.

What it means

Error "ScheduledTaskJob failed: No resource found." thrown in coollabsio/coolify.

Source

Thrown at app/Jobs/ScheduledTaskJob.php:86

        $this->onQueue(crons_queue());

        $this->task = $task;
        $this->timeout = $this->task->timeout ?? 300;
    }

    private function initializeExecutionContext(): void
    {
        $this->task->loadMissing([
            'service.destination.server.settings',
            'application.destination.server.settings',
        ]);

        if ($this->task->service) {
            $this->resource = $this->task->service;
        } elseif ($this->task->application) {
            $this->resource = $this->task->application;
        } else {
            throw new \RuntimeException('ScheduledTaskJob failed: No resource found.');
        }

        $this->team = Team::findOrFail($this->task->team_id);
        $this->server_timezone = $this->getServerTimezone();
        $this->server = $this->resource->destination->server;
    }

    private function getServerTimezone(): string
    {
        if ($this->resource instanceof Application) {
            return $this->resource->destination->server->settings->server_timezone;
        } elseif ($this->resource instanceof Service) {
            return $this->resource->server->settings->server_timezone;
        }

        return 'UTC';
    }

View on GitHub (pinned to 70b9acc424)

When it happens

Trigger: Thrown at app/Jobs/ScheduledTaskJob.php:86 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of coollabsio/coolify@70b9acc424 (2026-08-17). Data as JSON: /api/errors/0b8229fabc51437c. Report an issue: GitHub.