Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
2 replies
67 views

No matter how much I search (or maybe I'm searching incorrectly), I can't find a decent way to terminate my tasks in Python AsyncIO. I know what: - I need to bind to signals (SIGINT, SIGTERM) using ...
Uoyroem's user avatar
  • 23
2 votes
1 answer
80 views

I'm trying to implement a graceful shutdown in a Node.js app. It should deregister from Consul and close several resources (Redis, MySQL, etc.) when it receives a termination signal (SIGINT / SIGTERM)....
fakeKmz's user avatar
  • 93
0 votes
0 answers
55 views

I'm debugging graceful shutdown issues in my Quarkus 3.8.6 application and I see that io.vertx.core.impl.WorkerPool uses java.util.concurrent.ExecutorService#shutdownNow method call to stop the worker ...
aldius's user avatar
  • 1
0 votes
0 answers
45 views

I have a very simple springboot application as follow : import org.springframework.web.bind.annotation.*; import java.util.LinkedList; import java.util.Queue; @RestController public class ...
PatPanda's user avatar
  • 5,418
1 vote
0 answers
92 views

I have an application written in Go for Windows, and I'm trying to implement graceful shutdown while taking into account the specifics of my application. The application is launched by another process ...
Artem's user avatar
  • 113
-1 votes
1 answer
412 views

Below is a code snippet and I want to know how to gracefully handle the shutdown. use std::{ io::{stdin, stdout, Write}, process::exit, }; struct Admin { _i: u128, } impl Drop for Admin {...
Hokkyokusei's user avatar
  • 1,404
0 votes
1 answer
155 views

I want to implement graceful shutdown for the following java service. when a SIGTERM signal is sent, I want the program to keep processing the current task, but exit the loop. How can I achieve this? @...
Justin Xu's user avatar
0 votes
1 answer
353 views

I'm running a .Net 8 console application in Azure as a container image on linux using .NET SDK (no dockerfile). The app consists in several hosted services. When my app is stopping I need to handle ...
Lou's user avatar
  • 467
2 votes
1 answer
771 views

Now, a web server written in Go is running in docker container. When stopping docker container executing docker stop command, I want to shutdown the web server gracefully. In this case, is it possible ...
kkkkgyg's user avatar
  • 131
0 votes
1 answer
660 views

Regarding PostgreSQL Documentation: https://www.postgresql.org/docs/current/protocol-error-fields.html, the Severity field contains one of this values: ERROR, FATAL, or PANIC. Also here is a list of ...
Pitming Sir's user avatar
0 votes
2 answers
328 views

I have a Spring Boot web application which shuts down gracefully after a timeout of 120secs. Recently we have added a Spring Integration Flow to the same application to be able to process some files ...
Amit's user avatar
  • 383
2 votes
1 answer
3k views

Ok, I have a working microservice that provides gRPC via tokio / tonic and exposes metrics via warp. Both http and gRPC services shutdown correctly when receiving a sigint signal i.e. kill via ...
Marvin.Hansen's user avatar
3 votes
1 answer
302 views

We are trying to setup a DataProc cluster in GCP. While we do, we try to have secondary nodes which are either Spot VMs or Standard pre-emptible VMs (to note: spot VMs are also pre-emptible). When we ...
user3103957's user avatar
0 votes
1 answer
5k views

I am trying to add preStop hook to my k8s container but for some reason sleep seems like it does not work. I tried to add echo and in that case I can see that it work. But when I replace echo with ...
user1474111's user avatar
  • 1,536
0 votes
1 answer
138 views

How can we make sure to save the unsaved data (data that isn't saved by user yet) before the system goes through a scheduled shutdown I have tried to enable the "hibernation" feature on the ...
Praneeth Roy Mylapalli's user avatar
0 votes
1 answer
1k views

I recently added graceful shutdown to a handful of Spring Boot services (server.shutdown=graceful). These services all have Kafka and SQS listeners in them. Does this property also cause the listeners ...
smaxington's user avatar
1 vote
1 answer
673 views

Spring Application uses Reactor Kafka to consume messages. Question 1: Is there standard convention to pause message consumption and finish processing inflight messages during application shutdown? ...
Jaron Lee's user avatar
0 votes
1 answer
514 views

I'm using visual basic programs to create some files for my work, however, I'm learning python and want to use it to shut down my windows system after the visual basic program is completed execution
Abhishek Bajpai's user avatar
0 votes
0 answers
319 views

I have a docker-compose.yml file that defines a number of services. One is a redis instance, and another is a queue-worker. The queue-worker fetches jobs from redis and performs the necessary work. ...
Scratcha's user avatar
  • 1,401
0 votes
1 answer
74 views

I've been testing a critical application against signals it might receive: SIGTEMRM aka kill -15 can be ignored, so in this case I can take any time cleaning up everything before a graceful shutdown; ...
Maf's user avatar
  • 743
1 vote
0 answers
79 views

I am trying for graceful shutdown of nodejs service(which is huge) and hence kept a listener as ` process.on('SIGTERM',async ()=>{ console.log('EXITING'); }) ` As we can see I have not exit ...
Suraj Suthar's user avatar
0 votes
0 answers
225 views

I need to use yarn application -stop to gracefully stop my Spark application. According to this thread we need to set yarn.application.admin.client.class.SPARK first. But (1) how and where to set it?...
landau's user avatar
  • 41
2 votes
1 answer
837 views

Context There is an app running inside docker container. When docker stop %container_id% is sent the container receives SIGTERM. This signal is handled inside golang application via executing cleanup ...
mcv_dev's user avatar
  • 368
0 votes
0 answers
423 views

I have created a Java application and have an endpoint that waits for 25 seconds before returning a response. I have protected my application with the graceful shutdown mechanism as follows and works ...
Dishant Patel's user avatar
0 votes
0 answers
256 views

With reactor-netty-http:1.0.20 (with spring-webflux), on setting HttpServer.idleTimeout(idleTimeoutInMs), no GOWAY packet is seen in tcpdump.with protocol H2C, HTTP11, but directly a FIN packet at TCP ...
Sumi Silky's user avatar