Class: Drippings::ProcessJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- Drippings::ProcessJob
- Defined in:
- app/jobs/drippings/process_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(scheduling, *args, **kwargs) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/jobs/drippings/process_job.rb', line 5 def perform(scheduling, *args, **kwargs) scheduling.with_lock do break if scheduling.processed_at? resource = scheduling.resource process(resource, *args, **kwargs) unless skip?(resource) scheduling.touch(:processed_at) end end |