251 questions
0
votes
0
answers
49
views
Flask/Gunicorn on Render: Background Thread Causes Health Check Failure and SIGTERM
I've built a Flask application that uses a background thread to process user-uploaded documents for a RAG (Retrieval-Augmented Generation) pipeline. The goal is to provide a fast response to the user ...
0
votes
0
answers
68
views
How to properly handle SIGTERM in Python when stopping an Airflow task using "Mark as Failed"?
I am running a long-running Python script inside an Apache Airflow DAG using BashOperator. When I manually stop the task using "Mark as Failed" or "Mark as Success", Airflow sends ...
3
votes
2
answers
188
views
How to capture STDOUT, STDERR and process PID, without creating zombies
I'm wrapping a terraform binary in a script, as a part of an enterprise solution. Therefore I need to take care of:
file log capture (separately STDOUT, STDERR for some post-processing analytics)
...
0
votes
0
answers
55
views
KeyDB in Kubernetes receives SIGTERM and restarts unexpectedly
I’m running KeyDB v6.3.2 in a Kubernetes sts, and after an extended uptime (39+ days), the pod receives SIGTERM and restarts, even though there was no manual shutdown or scaling event
Here is the ...
1
vote
0
answers
239
views
Cloud Run service not receiving SIGTERM on shutdown
I have deployed an express-based nodejs web service via Cloud Run. Following the advice given in the Cloud Run documentation, I have set up handlers for SIGINT and SIGTERM to enable some graceful ...
1
vote
2
answers
178
views
How do I cooperatively stop another process in PowerShell?
The following starts another PowerShell process which logs to a file. That process is then stopped with Stop-Process:
{
end {
$logFile = "$PID`_log.txt"
'started' | Set-...
0
votes
1
answer
163
views
How to implement graceful shutdown and break loop when SIGTERM signal is sent?
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?
@...
0
votes
1
answer
164
views
Docker compose up - my command is not failing despite non-zero exit status?
Within my team's CI/CD pipeline, we have the following Make recipe:
test-some-service:
echo "Running some tests...." && \
docker-compose up service-target-test && \
...
2
votes
0
answers
232
views
SIGTERM not working against child process spawned by entrypoint
I'm trying to run an entrypoint script where it spawns a couple child processes (services), and I want docker stop or docker restart to propagate the SIGTERM to the children. However I cannot seem to ...
1
vote
1
answer
200
views
SIGTERM signal logs for Go application in EKS
func ServeRequest(configuredRoutes http.Handler) {
air_logger.SERVER_STARTUP("########## SERVER STARTED ##########")
server := &http.Server{
Addr: config.GetConfig()....
0
votes
1
answer
139
views
How can I interrupt a sub-command inside a pod?
My container command consists of multiple sub-commands. The yaml file looks like this (there is only one container in the pod):
apiVersion: batch/v1
kind: Job
metadata:
name: t-j
...
0
votes
0
answers
466
views
application does not handle SIGTERM an azure AKS
I have a containerized NestJS application. If I run it locally using docker, I can shut it down gracefully which I can see via logging. If I run the same container on AKS, there is no log output about ...
0
votes
0
answers
161
views
k8s exec command terminated but the remote command does not
I am using k8s remote exec command to run a http server (via cmd). When the host program terminated (Ctrl+C), the remote command still running at the remote container.
How to terminate the remote ...
0
votes
0
answers
1k
views
Irregular Docker restarts receiving SIGNAL 15 with unknown origin
I am experiencing irregular Signal 15 (SIGTERM) terminations of a MongoDB container (mongo:4.2.1-bionic) after which the node express container is unable to connect to MongoDB after restarting (the ...
1
vote
0
answers
253
views
Azure Spring Boot app receiving SIGTERM right after start
I have deployed a Spring Boot Application to Azure, which is up and running. For some reason, it suddenly receives a SIGTERM right after startup for the last couple of deployments, so the app actually ...