stop_is_oec: expect trio.EndOfChannel as graceful stream shutdown #52
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "stop_is_eoc"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
Replacement for #37 due to typo of eoc in orig branch name..
Copying descr content form that PR below..
This should be synced with
tractor’spiker_pin(dev) branch using thepyproject.tomlsetting,tractor = { git = "https://pikers.dev/goodboy/tractor", branch = "piker_pin" }Change
.data._samplingbroadcast error handling to includetrio.EndOfChannelin theSampler.bcast_errors: setsince atractor.MsgStreamtermination msg (Stop) now instead translates to that raised in task.The main purpose here is to avoid crashing the sampler broadcast task in such graceful peer-disconnect conditions.
Other stuff,
Also includes a new
piker.log.mk_repr()more or less copied from thetractor.devx.pformatmod, should be delegated eventually.