Class: ActiveWorker::FailureEvent

Inherits:
FinishedEvent show all
Extended by:
Behavior::CreateFromError
Defined in:
lib/active_worker/failure_event.rb

Class Method Summary collapse

Methods included from Behavior::CreateFromError

create_error_from_configuration, extended

Methods inherited from FinishedEvent

#generate_message

Methods inherited from Event

#event_type, exists_for_configurations?, #fields_for_view, #generate_message, #get_pid, #get_worker_pid, #set_message, #set_process_information

Methods included from Behavior::HasRootObject

#get_root_object_id, included, #notify_root_of_child_started, #notify_root_of_finished, #root_owner, #set_root_object

Class Method Details

.from_error(thread_root_configuration, error) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/active_worker/failure_event.rb', line 5

def self.from_error(thread_root_configuration, error)
  events = []
  thread_root_configuration.configurations_for_events.each do |configuration|
    events << create_error_from_configuration(configuration,error) unless configuration.completed?
  end
  events
end