diff --git a/Gemfile b/Gemfile index d499bfdb3..7ac6c4f09 100644 --- a/Gemfile +++ b/Gemfile @@ -21,7 +21,7 @@ gem 'flipper-active_record', '~> 1.4' gem 'flipper-ui', '~> 1.4' gem 'github_webhook', '~> 1.4' gem 'globalid' -gem 'good_job', '~> 4.22' +gem 'good_job', '~> 4.24' gem 'graphql' gem 'graphql-client' gem 'i18n' diff --git a/Gemfile.lock b/Gemfile.lock index d525b6dcc..08f0e025e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -209,7 +209,7 @@ GEM railties (>= 4) globalid (1.4.0) activesupport (>= 6.1) - good_job (4.22.1) + good_job (4.24.0) activejob (>= 6.1.0) activerecord (>= 6.1.0) concurrent-ruby (>= 1.3.1) @@ -235,7 +235,7 @@ GEM actionpack (>= 6.0.0) activesupport (>= 6.0.0) railties (>= 6.0.0) - io-console (0.9.4) + io-console (0.9.5) irb (1.18.0) pp (>= 0.6.0) prism (>= 1.3.0) @@ -594,7 +594,7 @@ DEPENDENCIES flipper-ui (~> 1.4) github_webhook (~> 1.4) globalid - good_job (~> 4.22) + good_job (~> 4.24) graphiql-rails graphql graphql-client diff --git a/db/migrate/20261116090552_add_index_good_job_executions_on_created_at.rb b/db/migrate/20261116090552_add_index_good_job_executions_on_created_at.rb new file mode 100644 index 000000000..59fc74520 --- /dev/null +++ b/db/migrate/20261116090552_add_index_good_job_executions_on_created_at.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +class AddIndexGoodJobExecutionsOnCreatedAt < ActiveRecord::Migration[8.1] + disable_ddl_transaction! + + def change + add_index :good_job_executions, :created_at, + name: :index_good_job_executions_on_created_at, + algorithm: :concurrently, + if_not_exists: true + end +end diff --git a/db/schema.rb b/db/schema.rb index 131ce4e59..14aecf726 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[8.1].define(version: 2026_11_12_152938) do +ActiveRecord::Schema[8.1].define(version: 2026_11_16_090552) do # These are extensions that must be enabled in order to support this database enable_extension "pg_catalog.plpgsql" enable_extension "pgcrypto" @@ -155,6 +155,7 @@ t.datetime "updated_at", null: false t.index ["active_job_id", "created_at"], name: "index_good_job_executions_on_active_job_id_and_created_at" t.index ["concurrency_key"], name: "index_good_job_executions_on_concurrency_key" +t.index ["created_at"], name: "index_good_job_executions_on_created_at" t.index ["process_id", "created_at"], name: "index_good_job_executions_on_process_id_and_created_at" t.index ["scheduled_at"], name: "index_good_job_executions_on_scheduled_at" end