app/models/foreman_tasks/task.rb in foreman-tasks-0.12.2 vs app/models/foreman_tasks/task.rb in foreman-tasks-0.13.0

- old
+ new

@@ -107,13 +107,19 @@ def paused? state == 'paused' end + # returns true if the task is *CURRENTLY* waiting to be executed in the future + def scheduled? + state == 'scheduled' + end + def recurring? !recurring_logic_task_group_ids.empty? end + # returns true if the task was planned to execute in the future def delayed? start_at.to_i != started_at.to_i end def self_and_parents