Skip to content

Commit 96d76de

Browse files
authored
HTCondor Adapater also supports account info. (#4814)
1 parent 3fab4b9 commit 96d76de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/dashboard/app/lib/account_cache.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ module AccountCache
99
# @return [Array<AccountInfo>] - the account info objects
1010
def accounts
1111
Rails.cache.fetch('account_info', expires_in: 4.hours) do
12-
# only Slurm support in ood_core
12+
# only Slurm & HTCondor support in ood_core
1313
# job_clusters: not to be confused with clusters
14-
slurm_job_clusters = Configuration.job_clusters.select(&:slurm?)
15-
slurm_job_clusters.empty? ? [] : slurm_job_clusters.map(&:job_adapter).flat_map(&:accounts).uniq
14+
job_clusters = Configuration.job_clusters.select { |c| c.slurm? || c.htcondor? }
15+
job_clusters.empty? ? [] : job_clusters.map(&:job_adapter).flat_map(&:accounts).uniq
1616
rescue StandardError => e
1717
Rails.logger.warn("Did not get accounts from system with error #{e}")
1818
Rails.logger.warn(e.backtrace.join("\n"))

0 commit comments

Comments
 (0)