fix: add finished_at to app deployment jobs

fix: show deployment job running measurements
fix: terminal should not be wire:navigated
This commit is contained in:
Andras Bacsai
2025-01-16 12:05:59 +01:00
parent 11414d347f
commit 55d61ffaee
13 changed files with 65 additions and 29 deletions

View File

@@ -316,6 +316,10 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
$this->fail($e);
throw $e;
} finally {
$this->application_deployment_queue->update([
'finished_at' => now(),
]);
if ($this->use_build_server) {
$this->server = $this->build_server;
} else {

View File

@@ -18,7 +18,7 @@ class Index extends Component
public int $skip = 0;
public int $default_take = 40;
public int $default_take = 10;
public bool $show_next = false;
@@ -42,7 +42,7 @@ class Index extends Component
if (! $application) {
return redirect()->route('dashboard');
}
['deployments' => $deployments, 'count' => $count] = $application->deployments(0, 40);
['deployments' => $deployments, 'count' => $count] = $application->deployments(0, $this->default_take);
$this->application = $application;
$this->deployments = $deployments;
$this->deployments_count = $count;