expire_o_auth_tokens post migration ArgumentError: wrong number of arguments
When running gdk update
, this background migration fails on ExpireOAuthTokens
:
rake aborted!
ArgumentError: wrong number of arguments (given 0, expected 1)
lib/gitlab/background_migration/expire_o_auth_tokens.rb:7:in `perform'
lib/gitlab/database/background_migration/batched_migration_wrapper.rb:69:in `execute_batched_migration_job'
lib/gitlab/database/background_migration/batched_migration_wrapper.rb:53:in `execute_job'
lib/gitlab/database/background_migration/batched_migration_wrapper.rb:42:in `execute_batch'
lib/gitlab/database/background_migration/batched_migration_wrapper.rb:22:in `perform'
lib/gitlab/database/background_migration/batched_migration_runner.rb:30:in `run_migration_job'
lib/gitlab/database/background_migration/batched_migration_runner.rb:130:in `run_migration_while'
lib/gitlab/database/background_migration/batched_migration_runner.rb:48:in `run_entire_migration'
lib/tasks/gitlab/db.rake:347:in `block (5 levels) in <main>'
lib/tasks/gitlab/db.rake:345:in `block (4 levels) in <main>'
lib/gitlab/database/each_database.rb:17:in `block (2 levels) in each_database_connection'
lib/gitlab/database/each_database.rb:78:in `block in with_shared_connection'
lib/gitlab/database/shared_model.rb:23:in `using_connection'
lib/gitlab/database/each_database.rb:75:in `with_shared_connection'
lib/gitlab/database/each_database.rb:16:in `block in each_database_connection'
lib/gitlab/database/each_database.rb:11:in `each_pair'
lib/gitlab/database/each_database.rb:11:in `each_database_connection'
lib/tasks/gitlab/db.rake:344:in `block (3 levels) in <main>'
lib/tasks/gitlab/db.rake:369:in `block (3 levels) in <main>'
Tasks: TOP => gitlab:db:execute_batched_migrations
(See full trace by running task with --trace)
I also see the same sentry log here https://sentry.gitlab.net/gitlab/devgitlaborg/issues/3299789/?referrer=slack