My FeedDiscussionsHashnode Enterprise
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Danyl Novhorodov

2 likes

·

3.3K reads

1 comment

Bogdan Mihai Cosofret
Bogdan Mihai Cosofret
Oct 5, 2023

I would add something to this. Because you are not throwing any exceptions in the function, then in the function monitoring you'll see only green runs, as if the function has succeeded every time when in fact it failed.

I used a solution very similar to this, but on retries, after completing the received message and sending a new one to the service bus, I threw the caught exception at the end. If you do this, then the function runs will appear as failed in the monitor.

·