Repository navigation
feat(processor): configurable delay option for event processing - #6376
Conversation
5ab50f8 to
5c59149
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6376 +/- ##
==========================================
- Coverage 77.64% 77.59% -0.05%
==========================================
Files 523 524 +1
Lines 70313 70363 +50
==========================================
+ Hits 54593 54600 +7
- Misses 12879 12919 +40
- Partials 2841 2844 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
4b0c0d8 to
6f05e48
Compare
6f05e48 to
b19ace8
Compare
If we sleep within the limiter's execution this means that we will be occupying a limiter slot for a longer period of time. limiter's slots are finite and there are occasions where these slots are less than the total number of active sources. In such a case one source's processing sleep would be causing processing delays in another source's processing |
🤖 I have created a release *beep* *boop* --- ## [1.61.0-rc.1](v1.59.0...v1.61.0-rc.1) (2025-10-13) ### Features * **processor:** configurable delay option for event processing ([#6376](#6376)) ([8321864](8321864)) * **processor:** configurable delay option for event processing ([#6376](#6376)) ([14a14b5](14a14b5)) * **router:** jobsdb pickup query batch size adapting to throttling limit ([#6338](#6338)) ([c38b971](c38b971)) ### Bug Fixes * add outgoing metrics to proxy flow ([#6355](#6355)) ([23a5c81](23a5c81)) * aws session config region ([#6354](#6354)) ([23a5c81](23a5c81)) * dedup gauge ([#6359](#6359)) ([a562df4](a562df4)) * improve HTML error extractration and truncation limits ([#6421](#6421)) ([9611096](9611096)) * keydb consistent hashing ([#6403](#6403)) ([f4a05ca](f4a05ca)) * keydb consistent hashing ([#6403](#6403)) ([472e529](472e529)) * keydb grpc config ([#6370](#6370)) ([cf04743](cf04743)) * missing keydb client stats ([#6360](#6360)) ([c42e5c8](c42e5c8)) * naming collision in redis throttling configuration ([#6365](#6365)) ([4f87afb](4f87afb)) * reporting event name trimming configuration ([#6417](#6417)) ([f4a05ca](f4a05ca)) * save webhook failures ([#6409](#6409)) ([27d3de3](27d3de3)) * set table type to external for glue ([#6386](#6386)) ([9017582](9017582)) * ut mirroring tests ([#6341](#6341)) ([51dd4f7](51dd4f7)) * **warehouse:** alter namespace col size ([#6379](#6379)) ([fbba498](fbba498)) * **warehouse:** int to float datatype handling ([#6416](#6416)) ([f4a05ca](f4a05ca)) * **warehouse:** skip extract async job failing test ([#6378](#6378)) ([89a4d1e](89a4d1e)) * **warehouse:** skip users table for duplicates check in staging file ([#6422](#6422)) ([8315e4e](8315e4e)) ### Miscellaneous * add authentication to reporting client ([#6384](#6384)) ([502d2b0](502d2b0)) * add explicit permissions for workflows ([#6381](#6381)) ([1d22623](1d22623)) * add readme for async destinaiton module ([#6356](#6356)) ([cc80333](cc80333)) * apply security best practices ([#6428](#6428)) ([49b1288](49b1288)) * change config key for pickupQueryThrottlingEnabled ([#6427](#6427)) ([b82ec25](b82ec25)) * cleanup enableOptimizedConnectionDetailsKey flag from processor ([#6383](#6383)) ([770c3fe](770c3fe)) * cleanup unused reporting client code after migrating to commonclient ([#6385](#6385)) ([2dd4c49](2dd4c49)) * configurable event name trimming for reporting ([#6394](#6394)) ([e757fa8](e757fa8)) * oauth service ([#6387](#6387)) ([caba16d](caba16d)) * release 1.60.0 ([#6390](#6390)) ([c461070](c461070)) * remove deprecated throttling configuration keys ([#6377](#6377)) ([8d667b7](8d667b7)) * skip building images for debendabot ([#6425](#6425)) ([3cbc422](3cbc422)) * upgrade build-scan-push-action to v1.8.0 ([#6350](#6350)) ([51dd4f7](51dd4f7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
## [1.61.0](v1.59.0...v1.61.0) (2025-10-15) ### Features * **processor:** configurable delay option for event processing ([#6376](#6376)) ([8321864](8321864)) ### Bug Fixes * improve HTML error extractration and truncation limits ([#6421](#6421)) ([9611096](9611096)) * save webhook failures ([#6409](#6409)) ([27d3de3](27d3de3)) * **warehouse:** skip users table for duplicates check in staging file ([#6422](#6422)) ([8315e4e](8315e4e)) ### Miscellaneous * apply security best practices ([#6428](#6428)) ([49b1288](49b1288)) * change config key for pickupQueryThrottlingEnabled ([#6427](#6427)) ([b82ec25](b82ec25)) * change release to 1.61.0 ([#6437](#6437)) ([20f7879](20f7879)) * cleanup enableOptimizedConnectionDetailsKey flag from processor ([#6383](#6383)) ([770c3fe](770c3fe)) * cleanup unused reporting client code after migrating to commonclient ([#6385](#6385)) ([2dd4c49](2dd4c49)) * oauth service ([#6387](#6387)) ([caba16d](caba16d)) * release 1.60.0 ([#6390](#6390)) ([c461070](c461070)) * skip building images for debendabot ([#6425](#6425)) ([3cbc422](3cbc422)) --------- Co-authored-by: Satish Kumar <[email protected]>
🤖 I have created a release *beep* *boop* --- ## [1.61.0](v1.59.0...v1.61.0) (2025-10-15) ### Features * **processor:** configurable delay option for event processing ([#6376](#6376)) ([14a14b5](14a14b5)) * **router:** jobsdb pickup query batch size adapting to throttling limit ([#6338](#6338)) ([c38b971](c38b971)) ### Bug Fixes * add outgoing metrics to proxy flow ([#6355](#6355)) ([23a5c81](23a5c81)) * aws session config region ([#6354](#6354)) ([23a5c81](23a5c81)) * dedup gauge ([#6359](#6359)) ([a562df4](a562df4)) * improve HTML error extractration and truncation limits ([#6421](#6421)) ([9611096](9611096)) * keydb consistent hashing ([#6403](#6403)) ([f4a05ca](f4a05ca)) * keydb consistent hashing ([#6403](#6403)) ([8321864](8321864)) * keydb consistent hashing ([#6403](#6403)) ([472e529](472e529)) * keydb grpc config ([#6370](#6370)) ([cf04743](cf04743)) * missing keydb client stats ([#6360](#6360)) ([c42e5c8](c42e5c8)) * naming collision in redis throttling configuration ([#6365](#6365)) ([4f87afb](4f87afb)) * reporting event name trimming configuration ([#6417](#6417)) ([f4a05ca](f4a05ca)) * save webhook failures ([#6409](#6409)) ([27d3de3](27d3de3)) * set table type to external for glue ([#6386](#6386)) ([9017582](9017582)) * ut mirroring tests ([#6341](#6341)) ([51dd4f7](51dd4f7)) * **warehouse:** alter namespace col size ([#6379](#6379)) ([fbba498](fbba498)) * **warehouse:** int to float datatype handling ([#6416](#6416)) ([f4a05ca](f4a05ca)) * **warehouse:** skip extract async job failing test ([#6378](#6378)) ([89a4d1e](89a4d1e)) * **warehouse:** skip users table for duplicates check in staging file ([#6422](#6422)) ([8315e4e](8315e4e)) ### Miscellaneous * add authentication to reporting client ([#6384](#6384)) ([502d2b0](502d2b0)) * add explicit permissions for workflows ([#6381](#6381)) ([1d22623](1d22623)) * add readme for async destinaiton module ([#6356](#6356)) ([cc80333](cc80333)) * apply security best practices ([#6428](#6428)) ([49b1288](49b1288)) * change config key for pickupQueryThrottlingEnabled ([#6427](#6427)) ([b82ec25](b82ec25)) * change release to 1.61.0 ([#6437](#6437)) ([b89d17a](b89d17a)) * cleanup enableOptimizedConnectionDetailsKey flag from processor ([#6383](#6383)) ([770c3fe](770c3fe)) * cleanup unused reporting client code after migrating to commonclient ([#6385](#6385)) ([2dd4c49](2dd4c49)) * configurable event name trimming for reporting ([#6394](#6394)) ([e757fa8](e757fa8)) * oauth service ([#6387](#6387)) ([caba16d](caba16d)) * release 1.60.0 ([#6390](#6390)) ([c461070](c461070)) * remove deprecated throttling configuration keys ([#6377](#6377)) ([8d667b7](8d667b7)) * skip building images for debendabot ([#6425](#6425)) ([3cbc422](3cbc422)) * upgrade build-scan-push-action to v1.8.0 ([#6350](#6350)) ([51dd4f7](51dd4f7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Description
Introducing support for configurable delays in the processor’s pipeline for specific partitions (typically sourceIDs). Delay for a specific partition can be configured using the
Processor.preprocessDelay.<partition>configuration property.Example:
This ensures that events from
sourceId-1are processed at least 5 minutes after theirreceivedAttimestamp.The processor will still pick up events as usual, but during the
preprocessstage (afterreceivedAtis read), it will pause processing based on the most recent event in the batch.If the processor is stopped while waiting (e.g. shutdown or node migration), the sleep will be interrupted and events will not be processed prematurely. When the processor restarts, processing will resume only after the configured delay has elapsed.
Linear Ticket
resolves PIPE-2392
Security