Git Product home page Git Product logo

Comments (1)

D10S0VSkY-OSS avatar D10S0VSkY-OSS commented on July 20, 2024 1

Hi @dehengxu
When a Celery worker, acting as an "SLD worker," receives a SIGTERM signal from Kubernetes (k8s) or Docker, its behavior depends on its configuration and the nature of Celery's task management.

By default, upon receiving a SIGTERM signal, a Celery worker initiates a graceful shutdown process. This means it attempts to finish all the tasks it is currently processing before shutting down. It will not accept new tasks but will try to complete those that have already started. This behavior is crucial to ensure that tasks are not abruptly interrupted, which could lead to inconsistent states or data loss.

However, it's important to note that this orderly shutdown process has a time limit. If the tasks do not complete within this period, the worker will shut down anyway, potentially leaving some tasks incomplete.

In summary, a Celery worker receiving a SIGTERM signal tries to complete its ongoing tasks before shutting down, but if these tasks are not completed within a certain time frame, it will shut down regardless.
If you provide me with more context about the problem you have or what you want to resolve, I may be able to assist you further.

from stack-lifecycle-deployment.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.