Add guards for empty-array and zero-bar-diff cases in the TSP backfill loops to avoid crashes and allow graceful loop termination. In `maybe_fill_null_segments()`, - add `array.size == 0` guard in `maybe_fill_null_segments()` to detect valid (venue closure) gaps from the backend; add a warning + bp + break for this case. - add TODO that we should likely be filling nulls with the close price for the gap's duration. In `start_backfill()`, - expand the "0 bars after diff" warning msg with `backfill_until_dt` and `end_dt_param` context. - mask the `await tractor.pause()` and add a `break` to avoid blocking the backfill loop. (this commit msg was generated in some part by [`claude-code`][claude-code-gh]) [claude-code-gh]: https://github.com/anthropics/claude-code |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _anal.py | ||
| _annotate.py | ||
| _dedupe_smart.py | ||
| _history.py | ||