mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-13 10:38:08 +00:00
Fix MarkDependantsFailed (#2389)
This commit is contained in:
@ -133,7 +133,7 @@ public class TaskOperations : StatefulOrm<Task, TaskState, TaskOperations>, ITas
|
|||||||
|
|
||||||
foreach (var t in taskInJob) {
|
foreach (var t in taskInJob) {
|
||||||
if (t.Config.PrereqTasks != null) {
|
if (t.Config.PrereqTasks != null) {
|
||||||
if (t.Config.PrereqTasks.Contains(t.TaskId)) {
|
if (t.Config.PrereqTasks.Contains(task.TaskId)) {
|
||||||
await MarkFailed(t, new Error(ErrorCode.TASK_FAILED, new[] { $"prerequisite task failed. task_id:{t.TaskId}" }), taskInJob);
|
await MarkFailed(t, new Error(ErrorCode.TASK_FAILED, new[] { $"prerequisite task failed. task_id:{t.TaskId}" }), taskInJob);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user