Skip to content

Commit

Permalink
fix: add gunicorn values in env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
abhimanyubabbar committed Jul 29, 2024
1 parent bfbc003 commit d7515e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/util/openfaas/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,10 @@ function buildOpenfaasFn(name, code, versionId, libraryVersionIDs, testMode, trM
envProcess = `${envProcess} --code "${code}" --config-backend-url ${CONFIG_BACKEND_URL} --lvids "${lvidsString}"`;
}

const envVars = {};
const envVars = {
GUNICORN_WORKER_COUNT: FAAS_GUNICORN_WORKERS,
GUNICORN_THREAD_COUNT: FAAS_GUNICORN_THREADS,
};

if (FAAS_ENABLE_WATCHDOG_ENV_VARS.trim().toLowerCase() === 'true') {
envVars.max_inflight = FAAS_MAX_INFLIGHT;
Expand Down

0 comments on commit d7515e5

Please sign in to comment.