NestJS · Junior · Question 64 of 75

What must you call so that shutdown hooks run on SIGTERM?

Explanation

Then onModuleDestroy and onApplicationShutdown can close database connections and finish work gracefully.

Further reading

Problem with a question

NestJS · Junior · question 64

Test yourself

Take the NestJS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz