python - Query Python3 script to get stats about the script -


i have script continually runs , accepts data (for familiar , if helps, connected emdr - https://eve-market-data-relay.readthedocs.org).

inside script have debugging built in can see how data in queue threads process, built used printing console. able either run same script additional option or totally different script return current queue count without having enable debug.

is there way please point me in direction of documentation/libaries need research?

there many ways solve this; 2 come mind:

  1. you can write queue count k/v store (like memcache or redis) , have script read , whatever other actions required.

  2. you can create specific logger informational output (like queue length) , set log somewhere else other console. example, use send email or log external service, etc. see logging cookbook examples.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -