I have a task on Snowflake that calls a stored procedure. This stored procedure has been defined as executed by the caller. The task which runs the stored procedure, in turn, has been created with role “A" but a few roles have also been granted ownership on this task.
Question: when the task runs and calls the stored procedure which role is actually calling the stored procedure if there are multiple roles that have ownership over the task?