Skip to content

Commit

Permalink
trigger migration runs manually until up to date (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdavidhamilton authored Jun 21, 2024
1 parent 9d20ff8 commit 43394e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/jobs/data_migration_job.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
class DataMigrationJob < ApplicationJob
def run
require 'migrate_training'
MigrateTraining.new.call
super do
MigrateTraining.new.call
end
end
end
2 changes: 1 addition & 1 deletion config/initializers/que.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
CompleteRegistrationMailJob: { cron: Rails.application.config.mail_job_interval },
StartTrainingMailJob: { cron: Rails.application.config.mail_job_interval },
ContinueTrainingMailJob: { cron: Rails.application.config.mail_job_interval },
DataMigrationJob: { cron: '0 18 * * *' },
# DataMigrationJob: { cron: '0 8 * * *' },
}
end

Expand Down

0 comments on commit 43394e7

Please sign in to comment.