-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
ESM/Pipes stream pollers: add shards to init params #12659
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
Conversation
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 1h 21m 20s ⏱️ - 24m 4s Results for commit 38620e3. ± Comparison against base commit 433aeff. This pull request removes 1209 tests.
♻️ This comment has been updated with latest results. |
When updating a pipe, its new poller needs to pick up where the old one left off.
datetime.utcnow() is deprecated and was giving a 2-hour difference result than get_current_time() for a computer running in CEST timezone. This led to valid records being expired in bisect_events_by_record_age in stream poller. Same function needs to be used across the code, especially when a comparison is made within same logic.
9078508
to
38620e3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat addition! 😄 Once we have a green run in -ext (and against your pipes feature branch) I'm happy to merge.
localstack-core/localstack/services/lambda_/event_source_mapping/pollers/dynamodb_poller.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Feel free to merge
One small nit: can we change the title to be a bit more informative? Especially since we don't support UpdatePipe
in this repo.
Motivation
Changes needed for UpdatePipe operation. A companion PR to the main one in ext.
Changes
bisect_events_by_record_age
in stream poller. Use same helper function across poller instead of deprecated.utcnow()
method.