Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flag harakiri-only-graceful #2600

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add flag harakiri-only-graceful #2600

wants to merge 1 commit into from

Conversation

atwrg
Copy link

@atwrg atwrg commented Feb 7, 2024

this setting can be useful for cases when graceful harakiri signal is handled by a function in app and from that function is raised exception and we don't want to reload the worker using effective harakiri, currently as a result of incrementation pending_harakiri variable, first harakiri on the given worker is graceful and second is effective harakiri with reload

example function in app:

def exit_gracefully(*args):
    raise TimeoutError

signal.signal(signal.SIGSYS, exit_gracefully)

this setting can be useful for cases when graceful harakiri signal is handled by function in app and from that function is raised exception
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant