@@ -20,8 +20,8 @@ options = [
2020 names : [' namespace' , ' n' ]
2121 type : ' string'
2222 help : ' request/response queue namespace'
23- default : ' meshblu'
2423 env : ' NAMESPACE'
24+ default : ' meshblu'
2525 }
2626 {
2727 names : [' single-run' , ' s' ]
@@ -75,6 +75,7 @@ options = [
7575 type : ' number'
7676 help : ' TTL of cache optimized datastore actions'
7777 env : ' DATASTORE_CACHE_TTL'
78+ default : 216000
7879 }
7980 {
8081 name : ' worker-name'
@@ -93,6 +94,7 @@ options = [
9394 type : ' string'
9495 help : ' Job log queue name'
9596 env : ' JOB_LOG_QUEUE'
97+ default : ' sample-rate:1.00'
9698 }
9799 {
98100 name : ' job-log-namespace'
@@ -105,6 +107,7 @@ options = [
105107 type : ' number'
106108 help : ' Job log sample rate (0.00 to 1.00)'
107109 env : ' JOB_LOG_SAMPLE_RATE'
110+ default : 0
108111 }
109112 {
110113 name : ' job-log-sample-rate-override-uuids'
@@ -129,13 +132,14 @@ options = [
129132 type : ' string'
130133 help : ' request queue name'
131134 env : ' REQUEST_QUEUE_NAME'
135+ default : ' v2:request:queue'
132136 }
133137 {
134138 name : ' concurrency'
135139 type : ' positiveInteger'
136- default : 1
137140 help : ' number of concurrent jobs to process'
138141 env : ' CONCURRENCY'
142+ default : 10
139143 }
140144]
141145
@@ -165,14 +169,14 @@ options = {
165169 namespace : opts .namespace
166170 timeoutSeconds : opts .timeout
167171 redisUri : opts .redis_uri
168- cacheRedisUri : opts .cache_redis_uri
169- firehoseRedisUri : opts .firehose_redis_uri
172+ cacheRedisUri : opts .cache_redis_uri ? opts . redis_uri
173+ firehoseRedisUri : opts .firehose_redis_uri ? opts . redis_uri
170174 mongoDBUri : opts .mongodb_uri
171175 pepper : opts .pepper
172176 workerName : opts .worker_name
173177 aliasServerUri : opts .alias_server_uri
174178 jobLogNamespace : opts .job_log_namespace
175- jobLogRedisUri : opts .job_log_redis_uri
179+ jobLogRedisUri : opts .job_log_redis_uri ? opts . redis_uri
176180 jobLogQueue : opts .job_log_queue
177181 jobLogSampleRate : opts .job_log_sample_rate
178182 jobLogSampleRateOverrideUuids : _ .split (opts .job_log_sample_rate_override_uuids , ' ,' )
0 commit comments