Skip to content

Commit

Permalink
[mq] [new] Undocumented worker option to support persistent summary s…
Browse files Browse the repository at this point in the history
…tats
  • Loading branch information
ptaoussanis committed Dec 23, 2022
1 parent 603a02e commit 641d127
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/taoensso/carmine/message_queue.clj
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,11 @@
(enc/future-pool nthreads-handler)
(atom [])
(atom {})
(tukey/summary-stats-buffered {:buffer-size 10000})
(tukey/summary-stats-buffered {:buffer-size 10000})
(tukey/summary-stats-buffered {:buffer-size 10000}))

;; :sstats-init opts below allow for manual persistent sstats, currently undocumented
(tukey/summary-stats-buffered {:buffer-size 10000 :sstats-init (get worker-opts :sstats-init/queue-size)})
(tukey/summary-stats-buffered {:buffer-size 10000 :sstats-init (get worker-opts :sstats-init/queueing-time-ms)})
(tukey/summary-stats-buffered {:buffer-size 10000 :sstats-init (get worker-opts :sstats-init/handling-time-ns)}))

;; Back compatibility
auto-start (get worker-opts :auto-start? auto-start)]
Expand Down

0 comments on commit 641d127

Please sign in to comment.