Skip to content
Snippets Groups Projects
Unverified Commit e7cf13b1 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

Async Hal Update

parent 9befaaf5
No related branches found
No related tags found
No related merge requests found
class Research::Hal::UpdateJob < ApplicationJob
queue_as :low_priority
def perform
Research::Hal.update_from_api!
end
end
......@@ -2,7 +2,7 @@ namespace :auto do
desc 'Update publications from HAL for all researchers'
task update_hal: :environment do
Research::Hal.update_from_api!
Research::Hal::UpdateJob.perform_later
end
desc 'Resave every website to enable publications in the future'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment