Skip to content

Conversation

@PramodValavala-MSFT
Copy link

The Timer Trigger annotation is missing the runOnStartup and useMonitor properties that are covered in the documentation.

Without these, I believe the only workaround today is to update the generated function.json directly in the JAR.

@MayankBargali-MSFT
Copy link

@amamounelsayed Can you please review this PR.

@parameshjava
Copy link

parameshjava commented Sep 29, 2021

@MayankBargali-MSFT @PramodValavala-MSFT thanks for this PR. Is there any SLA for this PR?

@PramodValavala-MSFT
Copy link
Author

@amamounelsayed @TsuyoshiUshio Just checking in for reviewing this and sharing feedback. Thanks!

@cslobodan
Copy link

Any info on when will this be merged? Thank you.

@dvag-alexander-graesel
Copy link

Come on guys - I have to work. Can you please merge the PR?

@parameshjava
Copy link

It’s been more than a year. Still not prioritised this?

* Defines the value indicating whether the schedule should be monitored.
* @return The value indicating whether the schedule should be monitored.
*/
boolean useMonitor() default false;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reference to this link on useMonitor: https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=csharp#configuration
So here is one concern:
if the schedule interval > 1 min then default value for useMonitor is true
if customer set false --> function.json will not have useMonitor(tested on local) --> host will set the useMonitor default value to true, this is not what customer want right.

The runOnStartup LGTM. So I wonder can you separate this PR to two, so we can merge the fix for runOnStartup and for useMonitor we can revisit and discuss the change and design. Thanks.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PramodValavala-MSFT can you please follow the comment and create a separate PR for runOnStartup only? We really need this functionality to prevent unwanted executions in production.
Thanks

@jessicali001
Copy link

Any update on this missing properties? (runOnStartup and useMonitor )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants