Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Nifi:scheduling processor one day one flowfile

avatar

I have to fetch online service with user Id-s(for example from 1 to 100) i have put 3 parameters start =1, end=100, parameter= 1, in GenerateFlowFile after that i wrote groovy code in exucutescript processor in a way that it generates 100 flowfile with certain user id-s i want to schedule my processor in a way that it can process only one flowfile in a day and reitreive only one user id in a day,i have workfloe like this GenerateFlowFile->ExecuteScript->InvokeHttp->putFile.I tried to change Back Pressure Object Threshold from 10000 to 1 but it doesn't work properly. What should i change to make this task?

1 ACCEPTED SOLUTION

avatar

@sally sally

To process only one file per day, just configure your processor to run once a day using a Scheduling Strategy of CRON driven

Here is an example of a processor scheduled to run everyday at 1PM

39595-screen-shot-2017-09-28-at-93809-am.png

View solution in original post

6 REPLIES 6

avatar

@sally sally

To process only one file per day, just configure your processor to run once a day using a Scheduling Strategy of CRON driven

Here is an example of a processor scheduled to run everyday at 1PM

39595-screen-shot-2017-09-28-at-93809-am.png

avatar

@sally sally

Does this answer your question?

avatar

Yes it was helpful 😄

avatar
@sally sally

Did the answer below help? Please either accept or explain why it didn't answer your question.

avatar
Explorer

@Wynner 

Can you please suggest how I schedule a processor so that it runs only when it receives the first flowfile for the day

avatar
Community Manager

@mbaid You should consider opening a new thread as this one is quite old. A new thread would also allow you to provide further details that will be unique to your situation. 


Keep the questions coming,

Cy Jervis | Senior Manager, Knowledge Programs

if (helpful) { mark_as_solution(); } | if (appreciated) { give_kudos(); }