app/lib/actions/base.rb in foreman-tasks-0.6.5 vs app/lib/actions/base.rb in foreman-tasks-0.6.6
- old
+ new
@@ -44,7 +44,12 @@
def humanized_errors
execution_plan.steps_in_state(:skipped, :skipping, :error).map do |step|
step.error.message if step.error
end.compact
end
+
+ def already_running?
+ ForemanTasks::Task::DynflowTask.for_action(self.class).
+ running.where('external_id != ?', execution_plan_id).any?
+ end
end
end