Share via

Java azure function Timer Trigger

Anonymous
2021-08-12T12:52:51.387+00:00

I have a Java azure function Timer Trigger that ran unexpectedly due to ispastdue flag, I have read that if you set UseMonitor to false you can disable the function running if it misses the scheduled run. However with in java I do not see where I can set this value, in the @TimerTrigger annotation UseMonitor = false is not allowed. Does anyone know where this can be set?

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.

{count} votes

Answer accepted by question author
  1. MayankBargali-MSFT 71,001 Reputation points Moderator
    2021-08-13T08:19:59.193+00:00

    @Anonymous Annotation does not supported runOnStartup as per the TimerTrigger code. But you can define the same in the configuration section on function.json

    I haven't tried it out but looks like once you have build your application you can see the target folder --> azure-functions --> yourtimertriggernamespecified --> Timertriggername -->function.json

    You can update this function.json file before deploying your application to azure or post deployment you can also update this function.json using KUDO console.

    We have created the pull request to add missing configuration properties for the Timer Trigger annotation : https://github.com/Azure/azure-functions-java-library/pull/154

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.