export async function timerTriggerWithRetry()

in app/v4/src/functions/timerTriggerWithRetry.ts [6:12]


export async function timerTriggerWithRetry(_myTimer: Timer, context: InvocationContext): Promise<void> {
    const retryCount = context.retryContext?.retryCount ?? 0;
    if (retryCount < 2) {
        throw new Error(`timerTriggerWithRetry error on attempt ${retryCount}`);
    }
    context.log(`timerTriggerWithRetry pass on attempt ${retryCount}`);
}