RunnerMachineBuild: Sidekiq/Database::DropDetachedPartitionsWorker: wrong number of arguments (given 1, expected 0)
In https://sentry.gitlab.net/gitlab/devgitlaborg/issues/4099925, we see:
ArgumentError: wrong number of arguments (given 1, expected 0)
from ci/runner_machine_build.rb:14:in `block in <class:RunnerMachineBuild>'
from gitlab/database/partitioning/sliding_list_strategy.rb:29:in `missing_partitions'
from gitlab/database/partitioning/partition_monitoring.rb:11:in `report_metrics_for_model'
from gitlab/database/partitioning.rb:55:in `block in report_metrics'
from gitlab/database/each_database.rb:69:in `block in with_model_connection'
from gitlab/database/each_database.rb:77:in `block in with_shared_connection'
from gitlab/database/shared_model.rb:34:in `using_connection'
from gitlab/database/each_database.rb:74:in `with_shared_connection'
from gitlab/database/each_database.rb:68:in `with_model_connection'
from gitlab/database/each_database.rb:31:in `block in each_model_connection'
from set.rb:328:in `each_key'
from set.rb:328:in `each'
from gitlab/database/each_database.rb:25:in `each_model_connection'
from gitlab/database/partitioning.rb:54:in `report_metrics'
from database/drop_detached_partitions_worker.rb:15:in `perform'
from sidekiq (6.5.7) lib/sidekiq/processor.rb:202:in `execute_job'
Likely because next_partition_if
is missing an argument?
% git grep next_partition_if app/models
app/models/ci/runner_machine_build.rb: next_partition_if: -> { false },
app/models/loose_foreign_keys/deleted_record.rb: next_partition_if: -> (active_partition) do
/cc; @pedropombeiro