From cff651a68664c991d2ed79a54eb58c932f4134dc Mon Sep 17 00:00:00 2001 From: Wendel Fabian Chinsamy Date: Mon, 29 Jul 2024 18:53:29 +0200 Subject: [PATCH] make gbif clean up task page size configurable --- lib/tasks/event.rake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tasks/event.rake b/lib/tasks/event.rake index e27db58a1..26d533675 100644 --- a/lib/tasks/event.rake +++ b/lib/tasks/event.rake @@ -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: {},