openresty / openresty/resty-cli

Terminate (gracefully) long running process

Open
#71 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Perl
Stars
269
Forks
59
Avg merge
1h 35m
Merged PRs (30d)
2

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how resty handles QUIT signals and how it propagates them to the underlying nginx process. Then inspect the timer lifecycle and determine how a long-running user loop could observe shutdown; done means the loop can stop, the timer can expire, and shutdown completes gracefully.

Written by the indexing model from the issue text.

Assessment

Tech stack
nginx, perl
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.