Fix: Update retry_on configuration to specify wait time for error handling

This commit is contained in:
2026-02-28 17:51:31 -05:00
parent 0a2d38a927
commit baf321d4d6

View File

@@ -10,6 +10,7 @@
class BillIssueTimeJob < ActiveJob::Base class BillIssueTimeJob < ActiveJob::Base
queue_as :default queue_as :default
retry_on StandardError, wait: 5.minutes, attempts: 5
# Perform billing of unbilled time entries for a given issue by creating corresponding TimeActivity records in QuickBooks Online, and then marking those entries as billed in Redmine. This job is typically triggered after an invoice is created or updated to ensure all relevant time is captured for billing. # Perform billing of unbilled time entries for a given issue by creating corresponding TimeActivity records in QuickBooks Online, and then marking those entries as billed in Redmine. This job is typically triggered after an invoice is created or updated to ensure all relevant time is captured for billing.
def perform(issue_id) def perform(issue_id)