Skip to content

Commit

Permalink
Update bourreau.rb
Browse files Browse the repository at this point in the history
comments verbiage
  • Loading branch information
MontrealSergiy authored Oct 18, 2022
1 parent 82d6d80 commit 355c5cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BrainPortal/app/models/bourreau.rb
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,11 @@ def self.process_command_start_workers(command)
# Returns a logger object or the symbol :auto
logger = self.initialize_worker_logger(log_to,verbose)

# prefetch git commits before workers are started (reduces git invocation #)
# prefetch git commits info just before workers are started (reduces git invocation #)
ToolConfig.where(:bourreau_id => myself.id)
.map {|tc| tc.cbrain_task_class rescue nil}
.uniq
.compact # to remove nil
.compact # to remove the nil
.each { |klass| klass.revision_info.self_update }

# Workers are started when created
Expand Down

0 comments on commit 355c5cf

Please sign in to comment.