How to add plugin's process after task finished?

Hi, so i’m working on a plugin for mangrove health analysis. It processed the 3D and orthomap into map layer, a grid of plot with color and detailed information. And then the result will be shown as a layer in map view.
From what i see in elevation and change detection plugin, the plugin processed data at the time of viewing. The viewer have a button to call an api to do plugin’s process. This means user need to wait a long time, depended on how long and complex the process is. I think mangrove health analysis plugin, that i will create, might need a long processing time.
How do i add plugin’s process after the task finished?

1 Like