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

fix(plugin): Fixed batch plugin stuck when underlying batch is collected #543

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

DrRebus
Copy link
Contributor

@DrRebus DrRebus commented Dec 3, 2024

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Bug fix and an improvement for the batch plugin

  • What is the current behavior? (You can also link to an open issue here)
    Steps using the batch plugin sometimes get stuck in the "WAITING" state because their underlying batch (in the database) was garbage-collected before they were able to populate it again.

  • What is the new behavior (if this is a feature change)?
    The batch plugin no longer stay stuck in the "WAITING" state; it re-creates the batch with the same public ID and populates it.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    Yes, the sub_batch_size parameter of the batch plugin now expects a string instead of a number to support both hardcoded values (e.g.: "5") and templated ones (e.g.: "{{ .config.myconfig.batch_size }}").

  • Other information:

pkg/plugins/builtin/batch/README.md Outdated Show resolved Hide resolved
pkg/plugins/builtin/batch/batch.go Outdated Show resolved Hide resolved
Signed-off-by: Ruben Tordjman <144785435+DrRebus@users.noreply.github.com>
@DrRebus DrRebus force-pushed the rtordjma/fix-batch-plugin-collected-batch branch from 3feea18 to 43de193 Compare December 13, 2024 14:12
@wI2L wI2L self-requested a review December 13, 2024 14:58
@wI2L wI2L merged commit 03aed02 into ovh:master Dec 13, 2024
1 check 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.

2 participants