question

ku95795-8068 avatar image
0 Votes"
ku95795-8068 asked ·

How function app triggered by Azure Queue decides the method succeeded or not? How to verify the same?

How function app triggered by Azure Queue decides the method succeeded or not? How to verify the same?

azure-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered ·

Hi @ku95795-8068,

Azure Functions uses a script host, very similar to JobHost in webjobs, to load all metadata and code files for your function app. When the script host calls your function based off your trigger, the execution of that method should determine the success/failure of the invocation. To report a failure, all one should need to do is raise/re-throw the exception to be caught by the ScriptHost. I would also suggest using ILogger to log errors captured by your function.

Hope this helps.

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.