Skip to content

Commit

Permalink
add label to the orphan task
Browse files Browse the repository at this point in the history
  • Loading branch information
wendelfabianchinsamy committed Jul 23, 2024
1 parent 04af198 commit a79c995
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/jobs/delete_orphaned_gbif_events_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ class DeleteOrphanedGbifEventsJob < ApplicationJob
queue_as :lupo_background

def perform(env, query)
Rails.logger.info("index: #{env}")
label = "DeleteOrphanedGbifEventsJob_#{Time.now.utc.strftime("%d%m%Y%H%M%S")}"

Rails.logger.info("#{label}: index_name: #{env}")

# response = Event.delete_by_query(index: env, query: query)

Expand Down

0 comments on commit a79c995

Please sign in to comment.