问题
I have an Azure function which is triggered by changes in the blob.
[FunctionName("...")]
public static void Run([BlobTrigger("...", Connection = "")]Stream myBlob, string name, ILogger log)
{
var processor = new ProcessBusiness(....);
processor.CallA();
CallB();
}
There is a function called CallA()
In that function, I make a call to a stored procedure which takes a lot of time to execute and I expect the function CallB()
to be executed when CallA()
finishes.
But it does not behave like this. It seems like it actually skips the heavy process and put some messages in some auto-created queue and execute the main function to the end and will get back again to handle the heavy part afterward based on the generated queue that I mentioned above.
How should I deal with this situation since I need CallB
to be executed after CallA
?
Thanks
来源:https://stackoverflow.com/questions/59176671/blob-trigger-azure-function-execution