NIAEFEUP / feup-exchange-backend

MIT License
3 stars 0 forks source link

[Endpoint] Allow the scheduling of the algorithm execution #17

Open EduRibeiro00 opened 2 years ago

EduRibeiro00 commented 2 years ago

We need a way to schedule the execution of the student allocation algorithm for a certain time. The endpoint should receive a request indicating the desired datetime for the execution, and schedule its execution for that time (after verifying that the datetime is valid). If necessary, we can save this datetime in the DB so that it can be shown to admins and students, and also edited/deleted in the future.

When it is time to run the algorithm, it should create a separate thread that will proceed to do its execution, and after finishing it should save the result in the database.

As it was mentioned, the endpoint should also allow to delete the scheduling or to edit the datetime previously chosen.