Hi,
> The handling of the :process_running event then leads to a clean up of
> the events list and the driver operation of the :flapping condition is
> never been processed.
I patched it like this
#
# this patch is a solution against the over active Driver.clear_events
# PollConditions associated with the lifecycle part of the
configuration
# should not be removed from the event queue.
# Instead of tracing which events need to be kept, it reschedules the
associated
# conditions (lifecycle metrics <= Task.metrics[state] where state =
nil)
#
module God
class Driver
def lifecycle_conditions
metrics = @task.metrics[nil] unless @task.nil? ||
@task.metrics[nil].nil?
metrics ||= []
return metrics.map{|m| m.conditions}.flatten.uniq
end
def clear_events
@events.clear
lifecycle_conditions.each {|lc| schedule(lc) if
lc.respond_to? :interval}
end
end
end
--
You received this message because you are subscribed to the Google Groups
"god.rb" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/god-rb?hl=en.