Set deployment status to IN_PROGRESS when queuing builds (#7487)

This commit is contained in:
Andras Bacsai 2025-12-04 13:42:04 +01:00 committed by GitHub
commit 554daf4f71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,10 +68,16 @@ function queue_application_deployment(Application $application, string $deployme
]);
if ($no_questions_asked) {
$deployment->update([
'status' => ApplicationDeploymentStatus::IN_PROGRESS->value,
]);
ApplicationDeploymentJob::dispatch(
application_deployment_queue_id: $deployment->id,
);
} elseif (next_queuable($server_id, $application_id, $commit, $pull_request_id)) {
$deployment->update([
'status' => ApplicationDeploymentStatus::IN_PROGRESS->value,
]);
ApplicationDeploymentJob::dispatch(
application_deployment_queue_id: $deployment->id,
);