From b7997e1a313ffb5387f508fd485fd794656af0c4 Mon Sep 17 00:00:00 2001 From: Lovro Bikic Date: Thu, 29 Jan 2026 12:52:51 +0100 Subject: [PATCH] Remove default value for 'mode' in CLI options Setting a default value will override the defaults in Configuration, which reads from the SOLID_QUEUE_SUPERVISOR_MODE environment variable, effectively making it useless --- lib/solid_queue/cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solid_queue/cli.rb b/lib/solid_queue/cli.rb index a2b5ba5e..2f3f3e13 100644 --- a/lib/solid_queue/cli.rb +++ b/lib/solid_queue/cli.rb @@ -8,7 +8,7 @@ class Cli < Thor desc: "Path to config file (default: #{Configuration::DEFAULT_CONFIG_FILE_PATH}).", banner: "SOLID_QUEUE_CONFIG" - class_option :mode, type: :string, default: "fork", enum: %w[ fork async ], + class_option :mode, type: :string, enum: %w[ fork async ], desc: "Whether to fork processes for workers and dispatchers (fork) or to run these in the same process as the supervisor (async) (default: fork).", banner: "SOLID_QUEUE_SUPERVISOR_MODE"