Skip to content

fix: dependson servicecompletedsuccessfully isnt always followed#1413

Closed
OnlyTerp wants to merge 2 commits intocontainers:mainfrom
OnlyTerp:fix/issue-1330
Closed

fix: dependson servicecompletedsuccessfully isnt always followed#1413
OnlyTerp wants to merge 2 commits intocontainers:mainfrom
OnlyTerp:fix/issue-1330

Conversation

@OnlyTerp
Copy link

@OnlyTerp OnlyTerp commented Mar 7, 2026

Summary

Closes #1330

Problem

Describe the bug
The depends_on: attribute with value "service_completed_successfully" isn't always honored, and containers may start out of their desired order.
To Reproduce

Changes

This PR addresses the issue by:

  • Identifying the root cause in the relevant code path
  • Applying a targeted fix with minimal scope

Testing

  • Code compiles without errors
  • Changes are scoped to the affected code paths only
  • Reviewed for regressions and side effects

Checklist

  • I have read and followed the contribution guidelines
  • My changes do not introduce new warnings or errors
  • I have commented my code where necessary

roberthallers added 2 commits March 7, 2026 04:37
Fixes #1330

Signed-off-by: roberthallers <roberthallers@users.noreply.github.com>
…ed-blocks

Extract the container state polling loop into a dedicated helper function
to reduce nesting depth in check_dep_conditions below pylint's threshold.
No behavioral changes.

Signed-off-by: roberthallers <roberthallers@users.noreply.github.com>
break
except subprocess.CalledProcessError:
pass
log.debug(
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should make this log message appear at most once a second.

Copy link
Collaborator

@p12tic p12tic left a comment

Choose a reason for hiding this comment

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

Looks good to me, but please add a newsfragment and an integration test.

@p12tic
Copy link
Collaborator

p12tic commented Mar 10, 2026

Also please check spelling in PR title and commit messages.

@OnlyTerp OnlyTerp closed this by deleting the head repository Mar 11, 2026
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.

depends_on service_completed_successfully isn't always followed

2 participants