Hi,
I have an azure function app v4 - in process with Blob trigger as you see below. This is hosted on app service with consumption plan. Time to time it goes into sleep - meaning it stops receiving the events from Blob until I manually wake it up.
To wake up - all that I need to do is navigate to the function app in portal. Then it starts processing the events. Appreciate any help to resolve this.
[FunctionName("ArchiveFunction")]
public static async Task RunAsync([BlobTrigger("%BlobContainer%/{name}", Connection = "StorageConnection")] Stream myBlob, string name,
[CosmosDB(
databaseName: "PCArchive",
collectionName: "PCEvents",
ConnectionStringSetting = "CosmosDbConnectionString")]IAsyncCollector<dynamic> documentsOut, ILogger log,
[CosmosDB(
databaseName: "PCArchive",
collectionName: "Online_Event",
CreateIfNotExists =true,
ConnectionStringSetting = "CosmosDbConnectionString")]IAsyncCollector<dynamic> leaseSBOOut)
I have few other function app with isolated process, there's no problem with them.
/Daniel