Class: Gearman::BackgroundTask

Inherits:
Task
  • Object
show all
Defined in:
lib/gearman/task.rb

Instance Attribute Summary

Attributes inherited from Task

#arg, #background, #epoch, #func, #priority, #retries_done, #retry_count, #successful, #uniq

Instance Method Summary collapse

Methods inherited from Task

#get_submit_packet, #get_uniq_hash, #handle_completion, #handle_created, #handle_data, #handle_exception, #handle_failure, #handle_status, #handle_warning, #on_complete, #on_created, #on_data, #on_exception, #on_fail, #on_retry, #on_status, #on_warning, #reset_state, #schedule

Constructor Details

#initialize(*args) ⇒ BackgroundTask

Returns a new instance of BackgroundTask.



221
222
223
224
# File 'lib/gearman/task.rb', line 221

def initialize(*args)
  super
  @background = true
end