Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

Long running functions getting recalled

Open sharpcoder28 opened this issue 9 years ago • 3 comments

I'm not sure if it's because I deployed while functions are running or my function is taking too long but I'm ending up with a function running multiple times. The status is a yellow symbol and you can see it executing more than once. This shouldn't be happening. Basically this function loops through an excel file and puts each row on a queue. Because this first function is firing more than once, it's putting duplicates on the queue. Here is an image of my portal right now:

image

sharpcoder28 avatar Oct 04 '17 18:10 sharpcoder28

I'm looking into switching from a queue to event hubs because event hubs has a batch insert operation. Hopefully that will bring my function time down.

sharpcoder28 avatar Oct 04 '17 18:10 sharpcoder28

It looks like the 5 minute timeout is not being honored. I'm trying this again and it's been running for 30 minutes. It should take a few minutes to call a 3rd party SOAP service, then add a queue message for each response. In this case 66k queue messages. Why would it take 30 min to do that? Also it's not scaling properly as far as I can tell. It's processed 40k out of 60, but there are only 38 messages on the queue right now.

sharpcoder28 avatar Oct 04 '17 20:10 sharpcoder28

@eamonoreilly

ColbyTresness avatar Mar 13 '19 19:03 ColbyTresness