How do I create a top level task for an entity which remains after the current 
task completes?

I have code running in a poller which starts a task in certain conditions. I 
want the task to remain in the task list of the entity, but it is GCed after 
the ScheduledTaskcompletes and I see no way to prevent it.
I am starting the task as follows because I want it as a top-level task, 
instead of as a child of the current one.

TaskBuilder.builder()
                .tag(BrooklynTaskTags.tagForContextEntity(entity))
                .tag(BrooklynTaskTags.NON_TRANSIENT_TASK_TAG)
Entities.submit(entity, updateService);

Svet.

Reply via email to