lib/gush/job.rb in gush-1.0.0 vs lib/gush/job.rb in gush-1.1.0

- old
+ new

@@ -86,11 +86,11 @@ def ready_to_start? !running? && !enqueued? && !finished? && !failed? && parents_succeeded? end def parents_succeeded? - incoming.all? do |name| - client.find_job(workflow_id, name).succeeded? + !incoming.any? do |name| + !client.find_job(workflow_id, name).succeeded? end end def has_no_dependencies? incoming.empty?