Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ gem 'faker'
gem 'faraday-retry'
gem 'fugit'
gem 'foundation_emails'
gem 'good_job', '~> 3.0'
gem 'good_job', '~> 4.0'
gem 'http_accept_language'
gem 'identity-hostdata', github: '18F/identity-hostdata', tag: 'v4.0.0'
gem 'identity-logging', github: '18F/identity-logging', tag: 'v0.1.1'
Expand Down
22 changes: 11 additions & 11 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -339,13 +339,13 @@ GEM
ffi (~> 1.0)
globalid (1.2.1)
activesupport (>= 6.1)
good_job (3.99.1)
activejob (>= 6.0.0)
activerecord (>= 6.0.0)
concurrent-ruby (>= 1.0.2)
fugit (>= 1.1)
railties (>= 6.0.0)
thor (>= 0.14.1)
good_job (4.4.2)
activejob (>= 6.1.0)
activerecord (>= 6.1.0)
concurrent-ruby (>= 1.3.1)
fugit (>= 1.11.0)
railties (>= 6.1.0)
thor (>= 1.0.0)
google-protobuf (4.28.2)
bigdecimal
rake (>= 13)
Expand All @@ -357,7 +357,7 @@ GEM
htmlbeautifier (1.4.3)
htmlentities (4.3.4)
http_accept_language (2.1.1)
i18n (1.14.5)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
i18n-tasks (1.0.12)
activesupport (>= 4.0.2)
Expand All @@ -372,7 +372,7 @@ GEM
terminal-table (>= 1.5.1)
ice_nine (0.11.2)
io-console (0.7.2)
irb (1.13.2)
irb (1.14.1)
rdoc (>= 4.0.0)
reline (>= 0.4.2)
jmespath (1.6.2)
Expand Down Expand Up @@ -743,7 +743,7 @@ GEM
xpath (3.2.0)
nokogiri (~> 1.8)
yard (0.9.36)
zeitwerk (2.6.16)
zeitwerk (2.7.1)
zlib (3.0.0)
zonebie (0.6.1)
zxcvbn (0.1.9)
Expand Down Expand Up @@ -789,7 +789,7 @@ DEPENDENCIES
faraday-retry
foundation_emails
fugit
good_job (~> 3.0)
good_job (~> 4.0)
http_accept_language
i18n-tasks (~> 1.0)
identity-hostdata!
Expand Down
16 changes: 0 additions & 16 deletions app/jobs/good_job_v4_ready_job.rb

This file was deleted.

5 changes: 0 additions & 5 deletions config/initializers/job_configurations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,6 @@
class: 'ThreatMetrixJsVerificationJob',
cron: cron_1h,
},
# Periodically check whether we can upgrade to GoodJob V4
good_job_v4_ready: {
class: 'GoodJobV4ReadyJob',
cron: cron_1h,
},
# Reject profiles that have been in fraud_review_pending for 30 days
fraud_rejection: {
class: 'FraudRejectionDailyJob',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# frozen_string_literal: true

class AddJobsFinishedAtToGoodJobBatches < ActiveRecord::Migration[7.1]
def change
reversible do |dir|
dir.up do
# Ensure this incremental update migration is idempotent
# with monolithic install migration.
return if connection.column_exists?(:good_job_batches, :jobs_finished_at)
end
end

safety_assured do
change_table :good_job_batches do |t|
t.datetime :jobs_finished_at
end
end
end
end
3 changes: 2 additions & 1 deletion db/worker_jobs_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.2].define(version: 2024_10_21_192437) do
ActiveRecord::Schema[7.2].define(version: 2024_10_22_162624) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
Expand All @@ -28,6 +28,7 @@
t.datetime "enqueued_at"
t.datetime "discarded_at"
t.datetime "finished_at"
t.datetime "jobs_finished_at"
end

create_table "good_job_executions", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
Expand Down
19 changes: 0 additions & 19 deletions spec/jobs/good_job_v4_ready_job_spec.rb

This file was deleted.