NestJS · Junior · Question 59 of 75

How do you run a method on a schedule, e.g. every night?

Explanation

Remember that with several instances each one runs the cron. Use a lock or a queue for jobs that must run once.

Further reading

Problem with a question

NestJS · Junior · question 59

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