Skip to content

(MODULES-11645) Ignore services with restart option as 'no' in exists? method#1046

Merged
span786 merged 1 commit intomainfrom
MODULES-11645
Feb 10, 2026
Merged

(MODULES-11645) Ignore services with restart option as 'no' in exists? method#1046
span786 merged 1 commit intomainfrom
MODULES-11645

Conversation

@shubhamshinde360
Copy link
Contributor

Summary

Services who have restart option set as 'no' are meant to be batch processing jobs which terminate once completed. Docker compose does not restart them, but in the exists? method, puppet looks for a running service. When it is unable to see a running service, it incorrectly assumes non-desired state and makes a corrective change. This commit rejects services with restart 'no' from the compose_services to mitigate this bug.

Additional Context

Related Issues (if any)

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified. (For example puppet apply)

…? method

Services who have restart option set as 'no' are meant to be batch processing jobs which terminate once completed.
Docker compose does not restart them, but in the exists? method, puppet looks for a running service. When it is unable to see a running service, it incorrectly assumes non-desired state and makes a corrective change.
This commit rejects services with restart 'no' from the compose_services to mitigate this bug.
@span786 span786 merged commit 0f545d9 into main Feb 10, 2026
11 of 15 checks passed
@span786 span786 deleted the MODULES-11645 branch February 10, 2026 06:05
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.

2 participants