Created 09-11-2024 10:48 PM
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
Created 09-12-2024 06:51 AM
@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
Created 09-23-2024 03:50 AM
I am running it once. I am using cron to scheduled the job @MattWho
Created 09-27-2024 12:17 PM
@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:
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
Created on 04-24-2025 03:56 AM - edited 04-24-2025 04:05 AM
I am facing the same issue.
The processor is configured rto get only 10 messages at a time.
I have over 500 messages in the inbox, all unread.
If I "Run once" the ConsumeIMAP processor it get 10 messages every time.
If I "run" the processor (regrdless what is the interval and if it's TimeDriven or CronDriven) it only get 1 message each time, but when I stop the processor it release 9 extra messages . I don't know what happens with the rest of the emails when the process executed multiple intervals, I don't know if anything is lost.
The processor has no configuration for run duration:
My processor configuration: