Sidekiq.configure_server do
  Supermarket::Application.load_tasks
end

Sidekiq.configure_server do |config|
  Supermarket::Application.load_tasks

  config.on(:shutdown) do
    ::CookbookVersion.
      where(verification_state: 'in_progress').
      update_all(verification_state: 'pending')
  end
end

Reset the state of the import when shutting down.
Reset the state of the import when shutting down.
