Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: app deployment should be in high queue

Andras Bacsaia3d3ada500e2
diff --git a/bootstrap/helpers/applications.php b/bootstrap/helpers/applications.php
index df891b8246..1a08a46ebb 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;
}