updated node offline task update

This commit is contained in:
marvzhang
2020-07-18 22:13:05 +08:00
parent 789b04b3ee
commit bce5ad8a0f

View File

@@ -452,7 +452,12 @@ func UpdateTaskToAbnormal(nodeId bson.ObjectId) error {
selector := bson.M{
"node_id": nodeId,
"status": constants.StatusRunning,
"status": bson.M{
"$in": []string{
constants.StatusPending,
constants.StatusRunning,
},
},
}
update := bson.M{
"$set": bson.M{