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

Add max_batch_age and max_batch_size optional config params #32

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

rstml
Copy link
Contributor

@rstml rstml commented Nov 25, 2023

Motivation - in certain cases, jobs may run for hours and generate many records. It's essential to be able to control how frequently files will be synced to S3.

max_batch_age and max_batch_size define upper limit for record count and period, whichever hits first. Using these in combination with append_date_to_filename_grain allows us to control how files are generated.

This also allows avoid filed being overwritten, described in #31.

Tested with Parquet writer.

Copy link

@pedro-muniz pedro-muniz left a comment

Choose a reason for hiding this comment

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

Great work @rstml!
I don't think this solves problem #31 due to so many combinations of these parameters can lead to the same problem, but they are good variables to have control.

@crowemi crowemi merged commit 4649b26 into crowemi:main Nov 27, 2023
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.

None yet

3 participants