File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 " ) )
You can’t perform that action at this time.
0 commit comments