public static void StopTaskForId(string id, TaskType type)
{
var task = new Dictionary<string, object>();
task["id"] = id;
task["stop"] = DateTime.UtcNow;
task["status"] = TaskStatus.stopped.ToString();
var tasktable = type.ToString();
var ts_response = TableStorage.UpmergeDictToTableStore(task, table: tasktable, partkey: master_pk, rowkey: id);
GenUtils.LogMsg("status", "Scheduler.StopTaskForId: " + id, ts_response.http_response.status.ToString());
}