piker/piker
Gud Boi ce3d8e7a1e Only register shms w sampler when `feed_is_live`
Add timeout-gated wait for `feed_is_live: trio.Event` before passing shm
tokens to `open_sample_stream()`; skip registering shm-buffers with the
sampler if the feed doesn't "go live" within a new timeout.

The main motivation here is to avoid the sampler incrementing shm-array
bufs when the mkt-venue is closed so that a trailing "same price"
line/bars isn't updated/rendered in the chart's view when unnecessary.

Deats,
- add `wait_for_live_timeout: float = 0.5` param to `manage_history()`
- warn-log the fqme when timeout triggers
- add error log for invalid `frame_start_dt` comparisons to
  `maybe_fill_null_segments()`.

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code
2026-02-22 22:08:35 -05:00
..
accounting accounting.calc: `.error()` on bad txn-time fields.. 2026-01-07 14:05:23 -05:00
brokers ib.feed: drop legacy "quote-with-vlm" polling 2026-02-22 22:08:35 -05:00
clearing Handle `tractor.TransportClosed` as "stream-closed" 2026-02-22 20:08:20 -05:00
cli Flip (back) `pikerd` to use TCP by default 2026-01-06 23:34:32 -05:00
data Clarify `register_with_sampler()` started type and vars 2026-02-22 22:08:35 -05:00
fsp Adjust to `trio`'s strict eg nurseries throughout! 2026-01-06 22:27:58 -05:00
service Port `.cli` & `.service` to latest `tractor` registry APIs 2026-01-06 22:27:58 -05:00
storage Mv `markup_gaps()` to new `.tsp._annotate` mod 2026-02-22 22:08:34 -05:00
testing Pass a config `tmp_dir: Path` to the runtime when testing 2023-03-09 15:37:43 -05:00
toolz Delegate `.toolz.open_crash_handler()` to `tractor.devx` 2024-01-16 10:26:38 -05:00
tsp Only register shms w sampler when `feed_is_live` 2026-02-22 22:08:35 -05:00
ui Use `get_fonts()`, add `show_txt` flag to gap annots 2026-02-22 22:08:35 -05:00
watchlists Add license headers to pertinent files 2020-11-06 12:23:14 -05:00
__init__.py Start `piker.service` sub-package 2023-03-09 15:37:42 -05:00
_cacheables.py Move `._cacheables.open_cached_client()` into `.brokers` pkg mod 2023-06-27 13:41:47 -04:00
calc.py Lul, adhere to returning `str`s in `humanize()` 2022-01-25 07:57:01 -05:00
config.py `.config.get_app_dir()`: link to `click`'s orig impl on GH 2026-01-06 19:33:23 -05:00
log.py Group bcast errors as `Sampler.bcast_errors` 2025-02-21 16:24:54 -05:00
types.py Point `.types.Struct` to `tractor.msg.pretty_struct` 2026-02-22 16:07:53 -05:00