Module: AsyncTask::BaseAttemptJob
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/async_task/jobs/base_attempt_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(task) ⇒ Object
16 17 18 19 |
# File 'lib/async_task/jobs/base_attempt_job.rb', line 16 def perform(task) @task = task unless_already_executing { @task.perform! if @task.reload.pending? } end |