Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting a process is inefficient #3448

Open
matthias-ronge opened this issue Apr 15, 2020 · 2 comments
Open

Deleting a process is inefficient #3448

matthias-ronge opened this issue Apr 15, 2020 · 2 comments

Comments

@matthias-ronge
Copy link
Collaborator

matthias-ronge commented Apr 15, 2020

When you delete a process, the script_removeSymLink runs for each task, for each role assigned to the task, for each user assigned to the role (see ProcessService). This is highly inefficient because shell calls are expensive (especially on Windows). The link is not removed for users who are not related to the process via a task (but have used the button to link processes to the home directory).

Goal: The best solution would be to have a separate script that searches for and removes corresponding symbolic links in all user directories. At least, the script should not be called more than once per user. This could happen separately for all users in the background in the task manager.

@matthias-ronge
Copy link
Collaborator Author

matthias-ronge commented Feb 27, 2023

Script also suggested in #3258

@matthias-ronge
Copy link
Collaborator Author

This means not only adding the possibility for a script, and writing a sample script, but it also means removing the Java code that did the deleting before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants