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

Reset StateBatchScheduler state on error. #360

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

Laimiux
Copy link
Collaborator

@Laimiux Laimiux commented Mar 18, 2024

No description provided.

@Laimiux Laimiux requested a review from jasonostrander March 18, 2024 14:41
@Laimiux Laimiux force-pushed the laimonas/reset-scheduler-state-on-error branch from 687c964 to 314f127 Compare March 18, 2024 14:41
// Clear them from our state
threadLocalBatches.remove()
// Get collected batches
val batches: MutableSet<BatchScheduler.Batch>? = threadLocalBatches.get()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We clear try to close out open batches even if there was an error

@carrotkite
Copy link

JaCoCo Code Coverage 83.63% ✅

Class Covered Meta Status
com/instacart/formula/batch/StateBatchScheduler 100% 0%

Generated by 🚫 Danger

@Laimiux Laimiux merged commit ec3bf46 into master Mar 18, 2024
3 checks passed
@Laimiux Laimiux deleted the laimonas/reset-scheduler-state-on-error branch March 18, 2024 17:07
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.

3 participants