Azure / Azure/azure-functions-java-library

TimerTrigger annotation doesn't cover 'useMonitor' and 'runOnStartup'

Open
#147 1 comment 2 reactions 0 assignees View on GitHub
area:java-functions
Dominant language
Java
Stars
45
Forks
49
PR merge metrics
No merged PRs in 30d

Description

I'd like to enable runOnStartup in function.json, but as far as I see the TimerTrigger anntation class, it's not supported.
Additionally, I found that we cannot change useMonitor into false via TimerTrigger anntation.
Should we support these settings in the anotation?

https://github.com/Azure/azure-functions-java-library/blob/dev/src/main/java/com/microsoft/azure/functions/annotation/TimerTrigger.java

https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/azure-functions/functions-bindings-timer.md#configuration

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with src/main/java/com/microsoft/azure/functions/annotation/TimerTrigger.java and compare its attributes with the timer binding configuration in the linked Azure documentation. Done means the annotation supports runOnStartup and allows useMonitor to be set to false, matching the corresponding function.json settings.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, java
Domain
backend, cloud
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.