@@ -70,6 +70,10 @@ OptionParser.new do |o|
7070 opts [ :update_timings ] = v
7171 end
7272
73+ o . on ( "--timings-key KEY" , "Update KEY instead of the default global job timings key." ) do |v |
74+ opts [ :timings_key ] = v
75+ end
76+
7377 o . on ( "--file-split-threshold N" , Integer , "Split spec files slower than N " \
7478 "seconds and schedule them as individual examples." ) do |v |
7579 opts [ :file_split_threshold ] = v
@@ -147,6 +151,7 @@ opts[:worker] ||= ENV.fetch("RSPECQ_WORKER", nil)
147151opts [ :seed ] ||= ENV . fetch ( "RSPECQ_SEED" , nil )
148152opts [ :redis_host ] ||= ENV [ "RSPECQ_REDIS" ] || DEFAULT_REDIS_HOST
149153opts [ :update_timings ] ||= env_set? ( "RSPECQ_UPDATE_TIMINGS" )
154+ opts [ :timings_key ] ||= ENV . fetch ( "RSPECQ_TIMINGS_KEY" , nil )
150155opts [ :file_split_threshold ] ||= Integer ( ENV [ "RSPECQ_FILE_SPLIT_THRESHOLD" ] || 9_999_999 )
151156opts [ :early_push_max_jobs ] ||= Integer ( ENV [ "RSPECQ_EARLY_PUSH_MAX_JOBS" ] ) if ENV [ "RSPECQ_EARLY_PUSH_MAX_JOBS" ]
152157opts [ :graceful_shutdown_signal ] ||= ENV . fetch ( "RSPECQ_GRACEFUL_SHUTDOWN_SIGNAL" , DEFAULT_GRACEFUL_SHUTDOWN_SIGNAL )
@@ -181,6 +186,7 @@ if opts[:report]
181186 timeout : opts [ :report_timeout ] ,
182187 redis_opts : redis_opts ,
183188 update_timings : opts [ :update_timings ] ,
189+ timings_key : opts [ :timings_key ] ,
184190 queue_wait_timeout : opts [ :queue_wait_timeout ]
185191 )
186192
0 commit comments