Skip to content

Commit

Permalink
Merge branch 'fix-recover-git-params' of 'https://github.com/sduenas/…
Browse files Browse the repository at this point in the history
…grimoirelab-core'

Merges #17 
Closes #17
  • Loading branch information
jjmerchante authored Dec 3, 2024
2 parents d359332 + 9989c42 commit 34f4c36
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/grimoirelab/core/scheduler/tasks/chronicler.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,13 @@ def recovery_args(
if progress.summary and progress.summary.last_offset:
job_args['recovery_commit'] = progress.summary.last_offset
job_args['latest_items'] = False
else:
elif progress.summary:
job_args['latest_items'] = True
else:
# Something went wrong on the side of the worker.
# The only thing we can do is to start over,
# without retrieving the latest items.
job_args['latest_items'] = False

return job_args

Expand Down

0 comments on commit 34f4c36

Please sign in to comment.