Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Admin
Commits
e7cf13b1
Unverified
Commit
e7cf13b1
authored
1 year ago
by
Sébastien Gaya
Browse files
Options
Downloads
Patches
Plain Diff
Async Hal Update
parent
9befaaf5
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
app/jobs/research/hal/update_job.rb
+7
-0
7 additions, 0 deletions
app/jobs/research/hal/update_job.rb
lib/tasks/auto.rake
+1
-1
1 addition, 1 deletion
lib/tasks/auto.rake
with
8 additions
and
1 deletion
app/jobs/research/hal/update_job.rb
0 → 100644
+
7
−
0
View file @
e7cf13b1
class
Research::Hal::UpdateJob
<
ApplicationJob
queue_as
:low_priority
def
perform
Research
::
Hal
.
update_from_api!
end
end
This diff is collapsed.
Click to expand it.
lib/tasks/auto.rake
+
1
−
1
View file @
e7cf13b1
...
...
@@ -2,7 +2,7 @@ namespace :auto do
desc
'Update publications from HAL for all researchers'
task
update_hal: :environment
do
Research
::
Hal
.
u
pdate
_from_api!
Research
::
Hal
::
U
pdate
Job
.
perform_later
end
desc
'Resave every website to enable publications in the future'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment