Skip to content

Commit

Permalink
worker: WORKER_MAX_PAYLPAD_MEMORY_MB -> WORKER_MAX_PAYLOAD_MB
Browse files Browse the repository at this point in the history
  • Loading branch information
josephjclark committed Jul 31, 2024
1 parent 0b8d788 commit 0f9b816
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ws-worker/src/util/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function parseArgs(argv: string[]): Args {
WORKER_LIGHTNING_PUBLIC_KEY,
WORKER_LIGHTNING_SERVICE_URL,
WORKER_LOG_LEVEL,
WORKER_MAX_PAYLOAD_MEMORY_MB,
WORKER_MAX_PAYLOAD_MB,
WORKER_MAX_RUN_DURATION_SECONDS,
WORKER_MAX_RUN_MEMORY_MB,
WORKER_PORT,
Expand Down Expand Up @@ -118,7 +118,7 @@ export default function parseArgs(argv: string[]): Args {
})
.option('payload-memory', {
description:
'Maximum memory allocated to a single run, in mb. Env: WORKER_MAX_PAYLOAD_MEMORY_MB',
'Maximum memory allocated to a single run, in mb. Env: WORKER_MAX_PAYLOAD_MB',
type: 'number',
})
.option('max-run-duration-seconds', {
Expand Down Expand Up @@ -153,7 +153,7 @@ export default function parseArgs(argv: string[]): Args {
['configuration', 'response']
),
runMemory: setArg(args.runMemory, WORKER_MAX_RUN_MEMORY_MB, 500),
payloadMemory: setArg(args.payloadMemory, WORKER_MAX_PAYLOAD_MEMORY_MB, 10),
payloadMemory: setArg(args.payloadMemory, WORKER_MAX_PAYLOAD_MB, 10),
maxRunDurationSeconds: setArg(
args.maxRunDurationSeconds,
WORKER_MAX_RUN_DURATION_SECONDS,
Expand Down

0 comments on commit 0f9b816

Please sign in to comment.