[midPoint-git] [Evolveum/midpoint] 76929c: Fix cleanup after finish to remove also subtasks

usert321user noreply at github.com
Wed Dec 11 12:10:26 CET 2024


  Branch: refs/heads/bugfix/10272
  Home:   https://github.com/Evolveum/midpoint
  Commit: 76929c5b70078c496eb93388cb397dbdbb9e1edb
      https://github.com/Evolveum/midpoint/commit/76929c5b70078c496eb93388cb397dbdbb9e1edb
  Author: Andrej Zan <mail at mail.mail>
  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

**What**

Remove not just root task, but also all its subtasks when it is
cleanedup.

**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.



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