Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solver: fix slow-cache status tracking with preprocess #1871

Merged
merged 1 commit into from Dec 11, 2020

Conversation

tonistiigi
Copy link
Member

@tonistiigi tonistiigi commented Dec 3, 2020

This reverts commit 7061291 from #1863 with some modification.

Preprocess should not be taken into account when calculating
cache-slow state. But it should be used to detect if dep is complete
so preprocess runs before parent's exec function.

Signed-off-by: Tonis Tiigi tonistiigi@gmail.com

Preprocess should not be taken into account when calculating
cache-slow state. But it should be used to detect if dep is complete
so preprocess runs before parent's exec function.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
@tonistiigi tonistiigi changed the title Revert "solver: remove scheduler fix" solver: fix slow-cache status tracking with preprocess Dec 11, 2020
@@ -604,10 +605,10 @@ func (e *edge) recalcCurrentState() {
}
}
effectiveState := dep.state
if dep.state == edgeStatusCacheSlow && isSlowIncomplete {
if dep.state == edgeStatusCacheSlow && isSlowCacheIncomplete {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if isSlowCacheIncomplete && (dep.state == edgeStatusCacheSlow || dep.state == edgeStatusComplete) {
    effectiveState = edgeStatusCacheFast
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants