From 0899021777e9b3d43e8d6d1c89d95fc565072302 Mon Sep 17 00:00:00 2001 From: Tanmay Sharma Date: Tue, 22 Jul 2025 16:15:45 +0400 Subject: [PATCH] add 1 hour timeout for the job --- app/jobs/migration/populate_contact_verification_job.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/jobs/migration/populate_contact_verification_job.rb b/app/jobs/migration/populate_contact_verification_job.rb index 631ffb81d..b8821d04e 100644 --- a/app/jobs/migration/populate_contact_verification_job.rb +++ b/app/jobs/migration/populate_contact_verification_job.rb @@ -1,6 +1,7 @@ # Delete migration and spec after 2 consecutive releases. class Migration::PopulateContactVerificationJob < ApplicationJob - queue_as :scheduled_jobs + include Sidekiq::Worker + sidekiq_options queue: :scheduled_jobs, timeout: 3_600 # 1 hour def perform updated_count = 0