断点信息保存

feature-flyModify
陈伟 2025-07-25 15:21:37 +08:00
parent 8d11d37af5
commit 54f504e610
2 changed files with 12 additions and 5 deletions

View File

@ -427,13 +427,18 @@ public class ConfigSubscribe : IJob
};
await _mqttClientManager.PublishAsync(cancelTaskTopic,
JsonConvert.SerializeObject(cancelTaskRequest));
// todo 更新任务状态及失败原因?
//更新任务状态及失败原因?
string flightId1 = data.output.ext.flight_id;
var taskId1 = _manageApp.GetTaskAssignByFlightId(flightId1).TaskId;
// todo 获取任务信息
// todo 改变任务状态
// todo 填充错误信息
// 添加断点信息
var taskRecord1 = new LasaTask()
{
Id = taskId1,
Status = 2,
BreakPoint = JsonConvert.SerializeObject(data.output.ext.break_point)
};
await _sqlSugarClient.Updateable(taskRecord1)
.IgnoreNullColumns().ExecuteCommandAsync();
}
else
{

View File

@ -138,5 +138,7 @@ namespace OpenAuth.Repository.Domain
public int? FlightTaskType { get; set; }
public string ExternalTaskId { get; set; }
public string BreakPoint { get; set; }
}
}