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); } }