Azure TimerTrigger not firing

615 views Asked by At

This TimerTrigger is not firing, can someone suggest better here.

public async Task test([TimerTrigger("0 0 11,12 * * 1-5")] TimerInfo timer)
{
    try 
    {
        await methodname();
    }
    catch (Exception ex) 
    {
        _logger.LogError(null, ex.Message, "test");
    }
}
2

There are 2 answers

0
iBala On BEST ANSWER
public async Task Notification([TimerTrigger("0 30 20 * * 1-5")] TimerInfo timer)
    {
        try
        {
            
        }
        catch (Exception ex)
        {
            
        }
    }
1
Frank Borzage On

If there is no additional configuration, you need to use public async Task Run. Changing test to Run may solve your problem.

As user1672994 mentioned in the comments, it seems that you also lack the configuration of function name:

[FunctionName(<<your function name here>>)]