1

I have a timer-triggered function setup like this

public class PBARCronTrigger
{
    private readonly eReserveFunctions _settings;

    public PBARCronTrigger(IOptions<eReserveFunctions> settings)
    {
        _settings = settings.Value;
    }

    [FunctionName("PBARCronTrigger")]
    public async Task Run([TimerTrigger("%PBARCron%")] TimerInfo myTimer, ILogger log)
    {
        log.LogInformation($"PBARCronTrigger function executing at: {DateTime.Now}");

        using (var client = new HttpClient())

and I have the app setting for PBARCron set to every 5 minutes:

enter image description here

but the trigger is not triggering. I connect to live logs and nothing happens. It keeps on saying "No new trace in the past x min(s)"

1 Answer 1

1

Your cron expression doesn't look right to me. Checking it in an evaluator even states that it's non-standard and may not work in every environment.

I think what you want is 0-55/5 * * * *, or more simply, */5 * * * *.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.