Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

Make the user->usage-future span be named so we can see CPU usage. #2154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scheduler/src/cook/scheduler/scheduler.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2158,7 +2158,7 @@
;; 2. Once the above two items are addressed, user->usage should always correctly
;; reflect *Cook*'s understanding of the state of the world at this point.
;; When this happens, users should never exceed their quota
user->usage-future (future (tracing/with-span [s1 {:from s :finish? false}] ; NOTE: finish? is set to false to prevent early finishing of the span
user->usage-future (future (tracing/with-span [s1 {:name "scheduler.pool-handler.user-usage-future-calculate" :from s :finish? false}] ; NOTE: finish? is set to false to prevent early finishing of the span
(generate-user-usage-map (d/db conn) pool-name)))
compute-clusters (vals @cook.compute-cluster/cluster-name->compute-cluster-atom)
user->quota (quota/create-user->quota-fn (d/db conn) (if using-pools? pool-name nil))]
Expand Down