Browse Source

CLDC-3543: Fix args reference in allow live run of handle unpended logs task (#2503)

pull/2504/head v0.4.56
Rachael Booth 6 months ago committed by GitHub
parent
commit
b553ec031a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      lib/tasks/handle_unpended_logs.rake

2
lib/tasks/handle_unpended_logs.rake

@ -1,5 +1,5 @@
desc "Deduplicates logs where we have inadvertently turned some pending logs to in progress / completed"
task :handle_unpended_logs, %i[perform_updates] => :environment do |_task, _args|
task :handle_unpended_logs, %i[perform_updates] => :environment do |_task, args|
dry_run = args[:perform_updates].blank? || args[:perform_updates] != "true"
pg = ActiveRecord::Base.connection

Loading…
Cancel
Save