public static bool ExistsTaskRecordForId(string id, TaskType type) { var task = FetchTaskForId(id, type); return (task.id == id); }
public static void EnsureTaskRecord(string id, TaskType type) { if (Scheduler.ExistsTaskRecordForId(id, type) == false) { GenUtils.LogMsg("status", "MaybeCreateTaskRecord: creating task for " + id, null); Scheduler.InitTaskForId(id, type); } }