Class: Scan::CheckModelJob
- Inherits:
-
ApplicationJob
- Object
- ApplicationJob
- Scan::CheckModelJob
- Defined in:
- app/jobs/scan/check_model_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(model_id) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/jobs/scan/check_model_job.rb', line 5 def perform(model_id) model = Model.find(model_id) # Scan for new files (runs integrity check automatically) model.add_new_files_later(include_all_subfolders: !model.contains_other_models?) # Rerun analysis job on individual files model.model_files.without_special.each do |file| file.analyse_later end end |