Skip to main content
InterviewHubPRO
Section Overview
Q33

Question 33 of 50

Part 3: Production Tuning, Asynchronous Workers & High Scale (25 - 35)

66%
PHP & Zend Engine (50 Qs)•Part 3: Production Tuning, Asynchronous Workers & High Scale (25 - 35)

How do you implement graceful shutdown in PHP queue consumers?

senior LevelAsync & PromisesData Structures

In Simple Words: Listen for POSIX signals (SIGTERM, SIGINT) using pcntl_signal(). When received, allow the currently running job to finish before exiting cleanly.