Univention Bugzilla – Bug 51860
Cleanup deactivated exam-users in cronjob
Last modified: 2023-06-12 16:32:11 CEST
It should be possible to cleanup deactivated exam-users periodically. This is needed since with Bug #50593 exam-users are not necessarily deleted after the end of an exam (for performance reasons). For this a new UCR-V should be introduced which sets the interval this is done by a cronjob.
A new UCR-V was introduced ucsschool/exam/cron/cleanup-master/remove-disabled-examusers which sets the interval the cleanup-script is called, which deletes all deactivated exam-users, e.g. 30 3 * * 0 For this, the exam-and-room-cleanup script was modified, since it already implements a method to delete exam-users. The new parameter --only-deactivated-exam-user-removal skips activated users. The following command does exactly that: /usr/share/ucs-school-exam-master/exam-and-room-cleanup --skip-exam-shutdown --skip-exam-computer-removal --skip-ucr-cleanup --skip-exam-cleanup --skip-room-cleanup --only-deactivated-exam-user-removal (without --only-deactivated-exam-user-removal all exam-students are deleted) It added as a cronjob with the interval set by the UCR-V. By default, this is commented out. [twenzel/51860_delete_deactivated_exam_users] d7253f03c Bug #51860: remove disabled users in cronjob
The code was never released -> reopen We should check if this is still needed.