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'


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

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