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.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: Remove asyncUntil
Andras Bacsaib70fe09d1710
diff --git a/src/lib/common.ts b/src/lib/common.tsindex d6b36b209d..680e352082 100644--- a/src/lib/common.ts+++ b/src/lib/common.ts@@ -46,20 +46,6 @@ const customConfig: Config = {export const version = currentVersion;export const asyncExecShell = util.promisify(child.exec);export const asyncSleep = (delay) => new Promise((resolve) => setTimeout(resolve, delay));-export const asyncUntil = (condition, delay, maxIterations) => {- return new Promise<void>(async (resolve, reject) => {- let iterations = 0;- while (!condition()) {- if (maxIterations && iterations >= maxIterations) {- reject(new Error('Max iterations reached.'));- return;- }- await asyncSleep(delay);- iterations++;- }- resolve();- });-};export const sentry = Sentry;diff --git a/src/lib/queues/index.ts b/src/lib/queues/index.tsindex c8646c3a11..736d767891 100644--- a/src/lib/queues/index.ts+++ b/src/lib/queues/index.ts@@ -11,7 +11,7 @@ import proxy from './proxy';import ssl from './ssl';import sslrenewal from './sslrenewal';-import { asyncExecShell, asyncUntil, saveBuildLog } from '$lib/common';+import { asyncExecShell, saveBuildLog } from '$lib/common';let { Queue, Worker } = Bullmq;let redisHost = 'localhost';