Page MenuHomePhabricator

OCG should shutdown cleanly
Closed, ResolvedPublic

Description

See T84723#1442170 for context.

There is a SIGINT handler in mw-ocg-service.js, but we need to add a SIGTERM handler. The SIGTERM handler should send a message to the child to ask it to exit cleanly at the end of its next loop. The backend server in particular needs a way to interrupt its redis-queue-fetch loop, but it would also be nice to check that the frontends aren't in the middle of handling a web request before killing them.

Event Timeline

cscott raised the priority of this task from to High.
cscott updated the task description. (Show Details)
cscott subscribed.

(For future reference, please associate at least one project with this task, otherwise nobody can find this task when searching in the corresponding project(s). Thanks.)