Fix downloading runner files
Fixes a regression introduced with 8fc5123b
This commit is contained in:

committed by
Sebastian Serth

parent
43f93af575
commit
9a280615c5
@ -54,9 +54,9 @@ class Runner < ApplicationRecord
|
||||
release!
|
||||
end
|
||||
|
||||
def download_file(desired_file, privileged_execution:, exclusive: true)
|
||||
def download_file(desired_file, privileged_execution:, exclusive: true, &block)
|
||||
reserve! if exclusive
|
||||
@strategy.download_file(desired_file, privileged_execution:)
|
||||
@strategy.download_file(desired_file, privileged_execution:, &block)
|
||||
release! if exclusive
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user