Class: Tasks::SetDescriptorsHandler::Handler
- Inherits:
-
BaseHandler
- Object
- BaseHandler
- Tasks::SetDescriptorsHandler::Handler
- Defined in:
- app/models/tasks/set_descriptors_handler.rb
Overview
The Setter handles the processing of each task, and actually performs the actions.
Instance Attribute Summary
Attributes inherited from BaseHandler
Instance Method Summary collapse
Methods inherited from BaseHandler
Constructor Details
This class inherits a constructor from Tasks::BaseHandler
Instance Method Details
#perform ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'app/models/tasks/set_descriptors_handler.rb', line 10 def perform # Process each request that has been selected in the front end # by default all requests are selected, but in rare circumstances the user # can uncheck a request to exclude it from the step requests.each do |request| next unless selected_requests.include?(request.id) process_request(request) end return false unless all_requests_processed? create_batch_events # We touch the batch to ensure any flowcell messages have an updated timestamp batch.touch # rubocop:disable Rails/SkipsModelValidations true end |
#render ⇒ Object
6 7 8 |
# File 'app/models/tasks/set_descriptors_handler.rb', line 6 def render controller.render_set_descriptors_task(task, params) end |