-
Harsh Chouraria authored
The command added in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/75388 and then subsequently updated in https://gitlab.com/gitlab-org/gitlab/-/merge_requests/78242 is attempting to print out an active record collection (with `pending` being an activerecord enum status match helper) that has not any usable printing inside it (only Ruby Object IDs are printed) Since the goal of these commands is to check for any actual pending jobs continuing to exist even outside of the Sidekiq jobs queue the command could be updated to print the count of matching status records Alternatively the following can be used to identify the actual pending classes and their arguments that have not yet completed: ``` gitlab-rails runner -e production \ 'puts Gitlab::Database::BackgroundMigrationJob.pending.map do |x| [x.class_name, x.arguments] end' ```
5f406156