Ideal way to terminate gracefully
Open
- Dominant language
- Python
- Stars
- 555
- Forks
- 138
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 9
Description
With the scripts running , what would be a graceful way to terminate and exit ?
Here is what i am doing -
1. Upon Keyboard Interrupt - disconnect device and then device.power_off().
Any thing else I may be missing. Didnt find a suitable example for the exit sequence yet , but any refrence to read up will help.
BTW irrespective of what reason i give for the disconnect device , the disconnect reason is always 22 .
Contributor guide
Assessment
This issue has not been assessed yet.