Can workflow interceptor be longrunning?

Hi,

I am trying to add a workflow interceptor, specifically for execute_workflow , with python sdk. this interceptor will check if the workflow can execute based on ratelimit logic and asyncio.sleep during the backoff.

Will this logic interfere with temporal’s internal processing like pollers, etc?

I dont want to accidentally block temporal worker while being ratelimited.

Thanks

Hi,

Can you share more about the use case and requirements? is the rate limit for an third-party service used by activities?

if some there are different approaches you could use, for example to limit the number of activity tasks dispatched to workers per second

Antonio