piker/piker
Tyler Goodlet a6c5902437 More reliable `marketstored` + container supervision
It turns out (i guess not so shockingly?) that `marketstore` doesn't
always teardown "gracefully" under SIGINT (seems to hang if there are
open client connections which are also in the midst of teardown?) so
this instead first tries the SIGINT and then fails over to a SIGKILL
(destroy loop) which seems to be much more reliable to ensure shutdown
without any downside - in terms of a "hard kill".

Originally i was thinking the issue was root perms related (which get
relegated solely to the `marketstored` daemon actor after spawn) but
actually it was indeed the signalling / application layer causing the
hold-up/latency on teardown. There's a bunch of lingering (now
commented) code which tried to solve this non-problem as well as a bunch
logging/prints to help decipher the root of the issue - this will all
get cleaned out shortly.
2022-05-09 11:15:13 -04:00
..
brokers Merge pull request #304 from pikers/offline_history_loading 2022-04-16 15:57:14 -04:00
clearing Allow `None` for `BrokerdError.reqid` 2022-05-09 10:56:47 -04:00
cli Make `pikerd` work again without `--tsdb` flag 2022-05-09 11:15:13 -04:00
data More reliable `marketstored` + container supervision 2022-05-09 11:15:13 -04:00
fsp Profiler format, code stretch 2022-04-30 11:36:23 -04:00
testing Import client for now until we make a proper shim 2018-02-12 10:35:54 -05:00
ui Only update y-range from L1 mxmn when last index in view 2022-04-30 11:36:23 -04:00
watchlists Add license headers to pertinent files 2020-11-06 12:23:14 -05:00
__init__.py Drop dependence on `msgpack` and `msgpack_numpy` 2022-02-28 08:15:18 -05:00
_cacheables.py Port to new `tractor.trionics.maybe_open_context()` api 2022-01-23 21:01:38 -05:00
_daemon.py Use new `tractor.query_actor()` for service checking 2022-05-09 11:15:13 -04:00
_profile.py Allow passing "ms slower then" value on cli to `--profile` 2022-04-30 11:36:23 -04:00
calc.py Lul, adhere to returning `str`s in `humanize()` 2022-01-25 07:57:01 -05:00
config.py Drop import, it's got madness with and SIGINT? 2022-05-09 11:15:13 -04:00
log.py Add license headers to pertinent files 2020-11-06 12:23:14 -05:00
trionics.py Start trionics mod with an `async_enter_all` 2022-01-23 19:41:57 -05:00