-> Graceful shutdown qore console
Qore console is doing everything related to deployment and long process tasks in the background. The problem is when qore console still doing something in the background then the pods service got a termination signal or SIGTERM, it should wait for processing till done. Currently, it will shut down immediately after getting SIGTERM
Add graceful shutdown to prevent immediate pod termination if any long process still occurs. List waiting process:
-
Clone the environment before applying deploy
-
Migration to a new environment
-
To be added more if any long process that must include.
-
Deployment should not included because the process is idempotent
-
If too many long processes we need to move long processing into cronjob.