static IScheduledTask makeTask(Map<Long, ScheduleStatus> events, int instanceId, boolean isProd) {
List<ITaskEvent> taskEvents = makeEvents(events);
return IScheduledTask.build(new ScheduledTask()
.setStatus(Iterables.getLast(taskEvents).getStatus())
.setTaskEvents(ITaskEvent.toBuildersList(taskEvents))
.setAssignedTask(new AssignedTask()
.setTaskId("task_Id")
.setSlaveHost("host")
.setInstanceId(instanceId)
.setTask(new TaskConfig()
.setJob(new JobKey("role", "env", "job"))