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

Commit

Permalink
Also log in which compute cluster and pool we generate offers for kub… (
Browse files Browse the repository at this point in the history
  • Loading branch information
scrosby authored and dposada committed Nov 1, 2019
1 parent 1969b1f commit 28045fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scheduler/src/cook/kubernetes/compute_cluster.clj
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@
; TODO: We are generating offers for every pool here, and filtering out only offers for this one pool.
; TODO: We should be smarter here and generate once, then reuse for each pool, instead of generating for each pool each time and only keeping one
offers-this-pool (get offers-all-pools pool-name)]
(log/info (str "Generated offers " (count offers-this-pool) " for pool " pool-name " "
(into [] (map #(into {} (select-keys % [:hostname :resources])) offers-this-pool))))
(log/info "Generated" (count offers-this-pool) "offers for pool" pool-name "in compute cluster" name
(into [] (map #(into {} (select-keys % [:hostname :resources])) offers-this-pool)))
offers-this-pool))

(restore-offers [this pool-name offers]))
Expand Down

0 comments on commit 28045fd

Please sign in to comment.