From 41f9830808146dfad8fcb3112fd797347c00a83f Mon Sep 17 00:00:00 2001 From: Filip Valder Date: Mon, 12 Dec 2016 08:33:32 +0100 Subject: [PATCH] add docstring and Ctrl+C instruction --- module_build_service/scheduler/main.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/module_build_service/scheduler/main.py b/module_build_service/scheduler/main.py index df2ba9ad..274726e9 100644 --- a/module_build_service/scheduler/main.py +++ b/module_build_service/scheduler/main.py @@ -312,7 +312,13 @@ def outgoing_work_queue_put(msg): def graceful_stop(): - log.warning("graceful_stop is not yet implemented...") + """ + Here is the place to perform shutdown actions. + + Do whatever is needed to do except for leaving the main thread, which + would result in losing control of POSIX signals handling. + """ + log.warning("graceful_stop is not yet implemented, press Ctrl+C again...") while True: time.sleep(30)