Class: IngestJob

Inherits:
Hyrax::ApplicationJob show all
Defined in:
app/jobs/ingest_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(wrapper, notification: false) ⇒ Object

rubocop:disable Lint/UnusedMethodArgument

Parameters:

  • wrapper (JobIoWrapper)
  • notification (Boolean) (defaults to: false)

    send the user a notification, used in after_perform callback

See Also:

  • IngestJob.'config/initializers/hyrax_callbacks'config/initializers/hyrax_callbacks.rb'


15
16
17
# File 'app/jobs/ingest_job.rb', line 15

def perform(wrapper, notification: false)
  wrapper.ingest_file
end