Skip to content

Conversation

sravotto
Copy link
Collaborator

@sravotto sravotto commented Oct 2, 2025

  • Add signal handling (SIGTERM/SIGINT) with proper cleanup using parent/child stopper contexts
  • Check for pending jobs on source table before validation to prevent conflicts
  • Refactor validation steps into uniform pipeline with better error reporting

Fixes: #20

- Add signal handling (SIGTERM/SIGINT) with proper cleanup using parent/child
  stopper contexts
- Check for pending jobs on source table before validation to prevent conflicts
- Refactor validation steps into uniform pipeline with better error reporting

Fixes: #20
@sravotto sravotto marked this pull request as ready for review October 2, 2025 16:18
@sravotto sravotto requested a review from BramGruneir October 2, 2025 16:18
Copy link
Collaborator

@BramGruneir BramGruneir left a comment

Choose a reason for hiding this comment

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

LGTM, but I left a non-blocking comment.

}

// Execute steps
for _, step := range steps {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is a full state machine really needed here? It's fine I guess, just seems over-complicated. And is begging for a test. You could just repeat a check for is stopping between the calls. Anyway, up to you.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had the check repeated originally, I decided to refactor it to make the steps more declarative.
I guess it's just matter of preference. As per the testing, it's covered in the minio integration test.

@sravotto sravotto merged commit 9a2e2e2 into main Oct 3, 2025
6 checks passed
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.

Improve clean up
2 participants