puts "========================================" puts task_data puts "========================================" task = task_data["task"] #task = Mutx::Tasks::Task.get(task_name) running_results = Mutx::Results.running_results_for_task_id task["_id"] max_number_of_execs_reached = running_results.size == task["max_execs"] status = if running_results.size>0 "running" else "ready" end color = Mutx::View.color(status) ?>