Bug 51860 - Cleanup deactivated exam-users in cronjob
Cleanup deactivated exam-users in cronjob
Status: REOPENED
Product: UCS@school
Classification: Unclassified
Component: UMC - Exam mode
UCS@school 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Tobias Wenzel
:
Depends on: 50593
Blocks:
  Show dependency treegraph
 
Reported: 2020-08-20 13:09 CEST by Tobias Wenzel
Modified: 2023-06-12 16:32 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Feature Request
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Wenzel univentionstaff 2020-08-20 13:09:08 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.
Comment 1 Tobias Wenzel univentionstaff 2020-08-20 13:25:05 CEST
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
Comment 2 Tobias Wenzel univentionstaff 2023-06-12 16:32:11 CEST
The code was never released -> reopen

We should check if this is still needed.