Support Questions

Find answers, ask questions, and share your expertise

ConsumeImap Processor is not working properly in NiFi

avatar
Contributor

We are using ConsumeImap Processor in NiFi. I have schedule the job to run once in the day. When the job is running at scheduled time its reading all the mails but processing only one.

But when I am triggering it manually, its reading all the mails and processing all the mails.

What could be the issue? below is the configuration for the same

Techie123_0-1726120120681.png

 

 

3 REPLIES 3

avatar
Master Mentor

@Techie123 

When you say "run it manually", does that mean you simply start the processor and allow it to run continuously or are you right click on the processor and selecting "run once"?

How do you have the "scheduling" configured for the processor?  I assume you are trying to use cron?

Thank you,
Matt

avatar
Contributor

I am running it once. I am using cron to scheduled the job @MattWho 

avatar
Master Mentor

@Techie123 

Different processor are built to execute differently when scheduled to execute by different Apache NiFi contributors.

Some ways to overcome this are to possibly:

  • Adjust the run duration so that processor runs longer when scheduled to process more FlowFiles or produce more FlowFile from an internal queue in a single scheduled execution.
  • Configure your cron to execute multiple times within a short period of time. so maybe every second for 15 seconds within a specific hour and minute.
  • Combination of both the above.

Please help our community thrive. If you found any of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "Accept as Solution" on one or more of them that helped.

Thank you,
Matt