From a3d3ada500e2ea6eb8dbc0b2b918e3cd8e797e83 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 24 Jun 2024 14:47:39 +0200 Subject: [PATCH] fix: app deployment should be in high queue --- bootstrap/helpers/applications.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bootstrap/helpers/applications.php b/bootstrap/helpers/applications.php index df891b824..1a08a46eb 100644 --- a/bootstrap/helpers/applications.php +++ b/bootstrap/helpers/applications.php @@ -46,11 +46,11 @@ function queue_application_deployment(Application $application, string $deployme if ($no_questions_asked) { dispatch(new ApplicationDeploymentJob( application_deployment_queue_id: $deployment->id, - )); + ))->onQueue('high'); } elseif (next_queuable($server_id, $application_id)) { dispatch(new ApplicationDeploymentJob( application_deployment_queue_id: $deployment->id, - )); + ))->onQueue('high'); } } function force_start_deployment(ApplicationDeploymentQueue $deployment) @@ -61,7 +61,7 @@ function force_start_deployment(ApplicationDeploymentQueue $deployment) dispatch(new ApplicationDeploymentJob( application_deployment_queue_id: $deployment->id, - )); + ))->onQueue('high'); } function queue_next_deployment(Application $application) { @@ -74,7 +74,7 @@ function queue_next_deployment(Application $application) dispatch(new ApplicationDeploymentJob( application_deployment_queue_id: $next_found->id, - )); + ))->onQueue('high'); } } @@ -115,7 +115,7 @@ function next_after_cancel(?Server $server = null) dispatch(new ApplicationDeploymentJob( application_deployment_queue_id: $next->id, - )); + ))->onQueue('high'); } break; }