Fix downloading runner files

Fixes a regression introduced with 8fc5123b
This commit is contained in:
Sebastian Serth
2023-12-22 00:30:12 +01:00
committed by Sebastian Serth
parent 43f93af575
commit 9a280615c5

View File

@ -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