# File lib/delayed/worker.rb, line 288 def max_attempts(job) job.max_attempts || self.class.max_attempts end