Blob Trigger Azure function execution?

家住魔仙堡 提交于 2019-12-13 03:37:23

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!