Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RDMS
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
researchdata
RDMS
Commits
a209d479
Commit
a209d479
authored
1 year ago
by
Anusha Ranganathan
Browse files
Options
Downloads
Patches
Plain Diff
Fixed class name
parent
c6e48414
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!301
Add helper to rerun last import run
Pipeline
#14301
passed
1 year ago
Stage: build
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hyrax/app/helpers/bulkrax_helper.rb
+2
-2
2 additions, 2 deletions
hyrax/app/helpers/bulkrax_helper.rb
with
2 additions
and
2 deletions
hyrax/app/helpers/bulkrax_helper.rb
+
2
−
2
View file @
a209d479
...
...
@@ -3,7 +3,7 @@ module BulkraxHelper
current_run
=
@importer
.
last_run
if
current_run
&
.
failed_records
&
.
positive?
ScheduleRelationshipsJob
.
set
(
wait:
5
.
minutes
).
perform_later
(
importer_id:
@importer
.
id
)
::
Bulkrax
::
ScheduleRelationshipsJob
.
set
(
wait:
5
.
minutes
).
perform_later
(
importer_id:
@importer
.
id
)
@importer
.
status_info
(
'Pending'
)
@importer
.
entries
.
each
do
|
entry
|
...
...
@@ -43,7 +43,7 @@ module BulkraxHelper
current_run
.
save
elsif
current_run
&&
@importer
.
parser
.
total
.
positive?
&&
current_run
.
processed_records
.
zero?
Bulkrax
::
ImporterJob
.
send
(
::
Bulkrax
::
ImporterJob
.
send
(
@importer
.
parser
.
perform_method
,
@importer
.
id
)
...
...
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