Skip to content

Commit b7997e1

Browse files
committed
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
1 parent 552f7d0 commit b7997e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/solid_queue/cli.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Cli < Thor
88
desc: "Path to config file (default: #{Configuration::DEFAULT_CONFIG_FILE_PATH}).",
99
banner: "SOLID_QUEUE_CONFIG"
1010

11-
class_option :mode, type: :string, default: "fork", enum: %w[ fork async ],
11+
class_option :mode, type: :string, enum: %w[ fork async ],
1212
desc: "Whether to fork processes for workers and dispatchers (fork) or to run these in the same process as the supervisor (async) (default: fork).",
1313
banner: "SOLID_QUEUE_SUPERVISOR_MODE"
1414

0 commit comments

Comments
 (0)