Skip to content

Commit

Permalink
increase timelimit for SampleDataPersistJob and SampleDataExtractionJob
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Dec 19, 2024
1 parent 3c90331 commit 70bf30e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/jobs/sample_data_extraction_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def task
arguments[0].sample_extraction_task
end

def timelimit
30.minutes
end

def handle_error(exception)
super
@extractor.clear if @extractor
Expand Down
4 changes: 4 additions & 0 deletions app/jobs/sample_data_persist_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ def perform(data_file, sample_type, user, assay_ids: [])
Rails.logger.info("Benchmark for persist: #{time}")
end

def timelimit
60.minutes
end

def task
arguments[0].sample_persistence_task
end
Expand Down

0 comments on commit 70bf30e

Please sign in to comment.