Sorry for the late reply
In order to do that you will need to start a new thread, and you need to keep alive the thread as long as it execute, meaning you will need to store it in a global variable.
Best way would be to reach octane directly as 3rd party are free to implement this as they want.
Cheers,
Maxime.