dapper91 / pjrpc

python json-rpc client/server without boilerplate
https://pjrpc.readthedocs.io
The Unlicense
32 stars 3 forks source link

examples/aio_pika_*.py: example RPC to schedule a shutdown (e.g. for restart) #61

Open bernhardkaindl opened 2 years ago

bernhardkaindl commented 2 years ago

examples/aiopika*.py: Implement shutdown RPC to support restarting the server

Add RPC method to terminate the server, useful for restarting it with updated code:

Especially useful during development of new code, for example using https://github.com/Almenon/AREPL-vscode and a loop for the client as well: while true;do python examples/aio_pika_client.py;sleep 1;done

codecov-commenter commented 2 years ago

Codecov Report

Merging #61 (bc84844) into dev (68d17db) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##              dev      #61   +/-   ##
=======================================
  Coverage   78.71%   78.71%           
=======================================
  Files          40       40           
  Lines        2584     2584           
=======================================
  Hits         2034     2034           
  Misses        550      550           
Flag Coverage Δ
unittests 78.71% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 68d17db...bc84844. Read the comment docs.