47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/eye/group.rb', line 47
def status_data(debug = false)
plist = @processes.map{|p| p.status_data(debug) }
h = { name: name, type: :group, subtree: plist }
h.merge!(debug: debug_data) if debug
if current_scheduled_command
h.update(current_command: current_scheduled_command)
if (chain_commands = scheduler_actions_list) && chain_commands.present?
h.update(chain_commands: chain_commands)
end
if @chain_processes_current && @chain_processes_count
h.update(chain_progress: [@chain_processes_current, @chain_processes_count])
end
end
h
end
|