Considering the application worked on last week design-patterns-backend. Let's add some processing and routines to the system.
Create scheduling jobs in BullMQ for two situations:
-
Add a status attribute that will be an
enumin theTaskobject. -
We should have a scheduling job to search for all open tasks that have not yet been completed and the Due Date is in past. The job should update the task status to
Late. The job should be scheduled for every day at midnight.