updated node offline task update

This commit is contained in:
marvzhang
2020-07-18 22:13:05 +08:00
parent d63c89d447
commit 6c098c7095

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{