Defines operations that will be executed once at shutdown of each instance of a task. This can be seen as "thread_local" finalization. This shutdown will be run concurrently for each instance of a task. For global task shutdown, use `task_exit` instead.
(self)
| 420 | return setup |
| 421 | |
| 422 | def task_instance_exit(self): |
| 423 | """ |
| 424 | Defines operations that will be executed once at shutdown of each |
| 425 | instance of a task. This can be seen as "thread_local" finalization. |
| 426 | |
| 427 | This shutdown will be run concurrently for each instance of a task. |
| 428 | For global task shutdown, use `task_exit` instead. |
| 429 | """ |
| 430 | setup = _SetupBuilder(_SetupBuilder.EXIT) |
| 431 | self.net().add_attribute(Task.TASK_INSTANCE_SETUP, setup) |
| 432 | return setup |
| 433 | |
| 434 | def local_init(self): |
| 435 | """ |