sequence.rb 588 B

1234567891011121314151617181920212223
  1. module Import
  2. module Mixin
  3. module Sequence
  4. private
  5. def sequence_name
  6. raise "Missing implementation of '#{__method__}' method for '#{self.class.name}'"
  7. end
  8. def process
  9. # remove previous result information that may still be saved
  10. # in case an import job was rescheduled
  11. @import_job.update!(result: {})
  12. Sequencer.process(sequence_name,
  13. parameters: {
  14. import_job: @import_job
  15. })
  16. end
  17. alias start_import process
  18. end
  19. end
  20. end