coolify/app/Livewire/Server/GithubRunnerExecutions.php
Andras Bacsai 5c50ab6162 feat(github-runners): improve runner lifecycle and GitHub sync
Add runner execution observability and lifecycle hardening for self-hosted
GitHub Actions runners, including:
- scheduled artifact cleanup job for cached runner tarballs/templates
- workflow_job in_progress handling to mark executions as running
- safer cleanup failure handling and non-functional server fallback
- persisted workflow job HTML URLs with execution "Open" links in UI
- configurable runner group name sync (UI + provisioning + GitHub API)
- webhook events persistence and auto-fix for missing required events
- strict enum/status checks and related model cast/query improvements

Also includes migrations and expanded feature/unit coverage for webhook,
provisioning, cleanup, and runner group/event sync behaviors.
2026-03-03 22:21:13 +01:00

34 lines
746 B
PHP

<?php
namespace App\Livewire\Server;
use App\Models\GithubRunnerExecution;
use App\Models\Server;
use Illuminate\Database\Eloquent\Collection;
use Livewire\Attributes\Computed;
use Livewire\Component;
class GithubRunnerExecutions extends Component
{
public Server $server;
public function mount(Server $server): void
{
$this->server = $server;
}
#[Computed]
public function recentExecutions(): Collection
{
return GithubRunnerExecution::query()
->where('server_id', $this->server->id)
->orderByDesc('created_at')
->limit(25)
->get();
}
public function render()
{
return view('livewire.server.github-runner-executions');
}
}