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");
}
}
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>>)]
public async Task Notification([TimerTrigger("0 30 20 * * 1-5")] TimerInfo timer)
{
try
{
}
catch (Exception ex)
{
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.