Github user JPercivall commented on the issue:

    https://github.com/apache/nifi/pull/655
  
    @Ramizjon could you explain the flow of logic that is going on? I think 
you're mixing up what each of the ReportingTask methods do and not letting the 
framework help.
    
    The flow of logic from the NiFi side is, the user will configure a period 
for the Reporting task to run. When they "start" the task the "@OnScheduled" 
method will be run. After that the framework will keep calling the "ontrigger" 
method, with the period the user set, in order to report. 
    
    I believe what you want to do is to initialize the "datadogReporter" in the 
OnScheduled using the user defined properties and then in the onTrigger call 
the "report" method of "datadogReporter".


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to