RomanOttGmx commented on PR #6900:
URL: https://github.com/apache/nifi/pull/6900#issuecomment-1977172784

   Yes, implement ConsumeImapProcessor with OAUTH2 and an associated 
oauth2AccessTokenProviderService.
   This Provider is only triggered on the onScheduled Method of the 
AbstractEmailProcessor and oauth2AccessTokenProvider.getAccessDetails() to 
refresh the token is only requested also on onScheduledMethod.
   But in onTriggered Method this will not trigger the 
oauth2AccessTokenProvider.getAccessDetails()
   
   We startet a local debug with break points. Configured the 
ConsumeImapProcessor with Schedule "Cron-Based" every 5 minutes.
   
   onScheduled => triggered on enabling the Processor
   
   Every 5 minutes there is the onTriggered Method triggered and not the 
onScheduled. That is general for all Processors which use the 
AbstractEmailProcessor.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to