middlebury / coursecatalog

This Course-Catalog is a project to develop a web front-end for searching and browsing course information stored in Banner.
https://github.com/middlebury/coursecatalog/wiki
GNU General Public License v3.0
9 stars 2 forks source link

Exports will get stuck if they don't complete. #22

Closed adamfranco closed 6 years ago

adamfranco commented 6 years ago

If an export fails, there is no mechanism to check-for and remove the failed job and start a new one.

The archive.generate action should insert the current process-id (PID) into the database and check that the process is still running when called a second time. If the PID no longer exists, then the failed entry should be dropped and a new job started. https://github.com/middlebury/coursecatalog/blob/master/application/controllers/ArchiveController.php#L360-L376