I want to have a function in my server which a user can create a 'jobScan' from an API route for example '/create-scan-job which basically on the creation of a scanJob it will be saved in the mongodb database with a 'scanDueDate' which will be used to queue a task that will change the status of the scan to 'completed' on the dueDate that was inputted by the user.
How can I build something like this? I have no problem in saving the data in the database but how do I 'queue' it to fire on the dueDate that was given as input?