Class: Jobs::ProcessEmail

Inherits:
Base
  • Object
show all
Defined in:
app/jobs/regular/process_email.rb

Instance Method Summary collapse

Methods inherited from Base

acquire_cluster_concurrency_lock!, clear_cluster_concurrency_lock!, cluster_concurrency, cluster_concurrency_redis_key, delayed_perform, #error_context, get_cluster_concurrency, #last_db_duration, #log, #perform, #perform_immediately

Instance Method Details

#execute(args) ⇒ Object



7
8
9
10
11
12
13
# File 'app/jobs/regular/process_email.rb', line 7

def execute(args)
  Email::Processor.process!(
    args[:mail],
    retry_on_rate_limit: args[:retry_on_rate_limit] || false,
    source: args[:source]&.to_sym,
  )
end