Hi @MichaelCruse-4449,
I think you are only missing a 0 at the beginning of your CRON expression.
It should be 0 */15 * * * * instead of */15 * * * *.
Thanks!
If the above response is helpful, please Accept as Answer and Upvote it. Thanks!
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I have recently Published an Azure Function from Visual Studio. The function is setup to trigger every 15 minutes. This works fine when I am logged in to the Portal but when I'm not logged in the function does not trigger.
Things I have tried:
Like I say the Function App works exactly as I expect it to when I am logged in so I've obviously done something wrong when publishing/setting up the Function.
Any help would be appreciated!
I'm not sure if the page https://github.com/Azure/azure-functions-host/wiki/Investigating-and-reporting-issues-with-timer-triggered-functions-not-firing is still relevant but I have included the requested information regardless:
Executing 'UpdateMeterReadings' (Reason='Timer fired at 2021-02-14T15:00:00.0099970+00:00', Id=b77b5b73-37cf-4c80-8469-5395b52b7088)
Function Code and CRON syntax:
[FunctionName("UpdateMeterReadings")]
public void Run([TimerTrigger("*/15 * * * *")]TimerInfo myTimer)
{
_log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
RecordMeterReadings(UtilityType.Electric);
RecordMeterReadings(UtilityType.Gas);
}
Hi @MichaelCruse-4449,
I think you are only missing a 0 at the beginning of your CRON expression.
It should be 0 */15 * * * * instead of */15 * * * *.
Thanks!
If the above response is helpful, please Accept as Answer and Upvote it. Thanks!
Hi @Michael C @Nasreen Akter
I am facing same problem but in my case I have not set any time to trigger blob storage. Instead I just want, when I upload a file to azure blob storage, the function app triggers the blob immediately. It works fine when I log in to Function App Portal, but when I log off or close the log stream in Function App Portal the Function App doesn't trigger the blob.
Kidly, please help me to resolve this issue.
Thanks
Plese answer here or there https://learn.microsoft.com/en-us/answers/questions/1044634/function-app-blob-trigger-only-works-when-i-open-l.html
Now I got it:-
Polling and latency
Polling works as a hybrid between inspecting logs and running periodic container scans. Blobs are scanned in groups of 10,000 at a time with a continuation token used between intervals. If your function app is on the Consumption plan, there can be up to a 10-minute delay in processing new blobs if a function app has gone idle.
Solutions:-
If you require faster or more reliable blob processing, you should instead implement one of the following strategies:
It's mentioned in the documentation itself https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger?tabs=in-process%2Cextensionv5&pivots=programming-language-python