Skip to content

Terminate (gracefully) long running process #71

Description

@LGMAM

We are using resty to run some long running processes - basically a while true loop that consumes messages from a message queue and then make some http calls for each message.

When sending a QUIT signal to resty, it correctly propagates the signal to the underlying nginx process.

Is there any way for my process to know that we have received that signal, so that we can exit for while loop, expire the resty timer and complete graceful shutdown ?

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions