Skip to content

Commit

Permalink
Add logging for resource and container transition check; minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yinyic committed Jul 10, 2024
1 parent e9bab79 commit ee891f6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion agent/engine/task_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ func (mtask *managedTask) printStatus() {
}

for _, res := range mtask.GetResources() {
knownStatus := res.GetKnownStatus()
desiredStatus := res.GetDesiredStatus()
logger.Debug("Resource status", logger.Fields{
field.TaskID: mtask.GetID(),
field.Resource: res.GetName(),
Expand Down Expand Up @@ -1066,8 +1068,16 @@ func (mtask *managedTask) progressTask() {
})

atLeastOneTransitionStarted := anyResourceTransition || anyContainerTransition

blockedByOrderingDependencies := len(blockedDependencies) > 0
logger.Debug("transition check results (
anyResourceTransition: %v,
anyContainerTransition: %v,
blockedByOrderingDependencies: %v",
anyResourceTransition, anyContainerTransition, blockedByOrderingDependencies,
logger.Fields{
field.TaskID: mtask.GetID(),
})
)

// If no transitions happened and we aren't blocked by ordering dependencies, then we are possibly in a state where
// its impossible for containers to move forward. We will do an additional check to see if we are waiting for ACS
Expand Down

0 comments on commit ee891f6

Please sign in to comment.