Query regarding blueshift

Dear Quantra teachers,

What will happen if two functions run at the same time. For e.g. if there is rebalance function which runs every 30 minutes and handle_data function which runs every minute. What will happen at all those times in which both the functions run together ?

Thank you

Warm regards,

Advait Gaur 

 

Hi Advait,



Even if you schedule two functions at the same time, at any one point in time, only one function will run to finish (until it returns or raises an exception). That is guaranteed by the Complex Event Processing (CEP) engine. There is no guarantee, however, given two functions scheduled at the same time, which one will run first.