Skip to content

Conversation

d1ngd0
Copy link

@d1ngd0 d1ngd0 commented Oct 17, 2024

Send Partial Batch will force partial batches to send right away when calling Writer.WriteMessages instead of blocking until a full batch is made or the timeout is seen.

I have run into the same issue seen in #852 this issue and took a whack at implementing a new setting to output batches right away. My implementation is nearly identical to #1167. Unfortunately I didn't do my homework ahead of time and just re-invented the same solution.

This does add a test to ensure the solution works, and implements the deprecated pattern as well, since it is required in the testing. Further more I removed the unnecessary goroutine which fires the batch after the timeout, since the batch will always flush.

@seg-atlantis-prod
Copy link

Atlantis commands can't be run on fork pull requests. To enable, set --allow-fork-prs or, to disable this message, set --silence-fork-pr-errors

@seg-atlantis-prod
Copy link

Error parsing command: EOF found when expecting closing quote 
Send Partial Batch will force partial batches to send right away when calling Writer.WriteMessages instead of blocking until a full batch is made or the timeout is seen.
@d1ngd0 d1ngd0 force-pushed the ftr/nonblocking-send branch from 722b4a2 to 8d701a8 Compare October 17, 2024 12:03
@seg-atlantis-prod
Copy link

Atlantis commands can't be run on fork pull requests. To enable, set --allow-fork-prs or, to disable this message, set --silence-fork-pr-errors

@seg-atlantis-prod
Copy link

Error parsing command: EOF found when expecting closing quote 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant