Class: Spree::BankPayments::PollJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- Spree::BankPayments::PollJob
- Defined in:
- app/jobs/spree/bank_payments/poll_job.rb
Constant Summary collapse
- OVERLAP =
Deliberate overlap with the previous run. Ingestion is idempotent, so re-reading recent transfers costs nothing and closes the gap when a provider exhausts its webhook retries.
2.hours
Instance Method Summary collapse
Instance Method Details
#perform ⇒ Object
11 12 13 14 15 |
# File 'app/jobs/spree/bank_payments/poll_job.rb', line 11 def perform Spree::BankPayments::Gateway.find_each do |payment_method| poll_one(payment_method) end end |