PrefectHQ / prefect

Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
https://prefect.io
Apache License 2.0
15.97k stars 1.57k forks source link

Backfill _all_ of the preceding events, in smaller batches and a limited time #14233

Closed chrisguidry closed 3 months ago

chrisguidry commented 3 months ago

During my load testing of TaskWorker, I was able to narrow down one source of instability to missing events during a websocket reconnection. I realized that we were only partially backfilling events down the socket (limited to 1k) and that under moderate volume it was totally possible to miss events. Instead, we will clamp the backfill to 15 minutes worth of time and send all of the matching events.

Part of #14098