Skip to content

Commit

Permalink
Merge pull request #1224 from datacite/make-gbif-cleanup-page-size-co…
Browse files Browse the repository at this point in the history
…nfigurable

make gbif clean up task page size configurable
  • Loading branch information
wendelfabianchinsamy authored Jul 30, 2024
2 parents a7045ac + cff651a commit 1a38df6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tasks/event.rake
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ namespace :gbif_events do
exit
end

size = ENV["SIZE"].present? ? ENV["SIZE"].to_i : 1000

options = {
size: 1000,
size: size,
from_id: (ENV["FROM_ID"] || Event.minimum(:id)).to_i,
until_id: (ENV["UNTIL_ID"] || Event.maximum(:id)).to_i,
filter: {},
Expand Down

0 comments on commit 1a38df6

Please sign in to comment.