[midPoint-git] [Evolveum/midpoint] 4da3d2: Fix cleanup after finish to remove also subtasks (...
Andrej
noreply at github.com
Wed Dec 11 14:12:33 CET 2024
Branch: refs/heads/master
Home: https://github.com/Evolveum/midpoint
Commit: 4da3d2184cce9dfa7d066dd750d5e7725ac65865
https://github.com/Evolveum/midpoint/commit/4da3d2184cce9dfa7d066dd750d5e7725ac65865
Author: Andrej <84732799+and-za at users.noreply.github.com>
Date: 2024-12-11 (Wed, 11 Dec 2024)
Changed paths:
M model/model-impl/src/main/java/com/evolveum/midpoint/model/impl/trigger/CompletedTaskCleanupTriggerHandler.java
M model/model-intest/src/test/java/com/evolveum/midpoint/model/intest/tasks/TestMiscTasks.java
A model/model-intest/src/test/resources/tasks/misc/task-cleanup-subtasks-after-completion.xml
Log Message:
-----------
Fix cleanup after finish to remove also subtasks (#238)
**What**
Remove not just the root task, but also all its subtasks when it is
cleaned up.
**Why**
When cleanup after finish is set on task, it should be auto-removed
after specified duration from its completion.
However there was a bug, which caused, that only the root task was
removed. If task run spawned any persistent subtasks (e.g. when
number of workers per node is specified), those were not cleaned up.
This change fixes it.
---------
Co-authored-by: Andrej Zan <mail at mail.mail>
To unsubscribe from these emails, change your notification settings at https://github.com/Evolveum/midpoint/settings/notifications
More information about the midPoint-svn
mailing list