ahmed
ahmed

Reputation: 293

Nifi processor cron based scheduling

Here is the syntax I have tried with 0 30 0 * * ? or 0 30 1 * * ?, which should run at 12:30 or 1:30 midnight respectively.

Also, I am tired of running the flow with cron in NiFi every 20 minutes, but it worked perfectly.

But we want it to be run daily once at a particular time, as mentioned in the above example (0 30 0 * * ? or 0 30 1 * * ?).

But it is not working. can anyone please guide me?

Upvotes: 5

Views: 34036

Answers (4)

pedram bashiri
pedram bashiri

Reputation: 1376

The simplest form:

0 30 1 * * ?

This is actually an example from Nifi documentation: https://nifi.apache.org/docs/nifi-docs/html/user-guide.html

And here's a complete tutorial on cron: https://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/tutorial-lesson-06.html

Upvotes: 2

nbalodi
nbalodi

Reputation: 94

You can make cron scheduling for NiFi using the link CronMaker.

Upvotes: 2

Ankit Tripathi
Ankit Tripathi

Reputation: 345

Just now I tried like for time 19:10 below:-

0 10 19 1/1 * ? *

It worked for me.

Upvotes: 1

Mahendran V M
Mahendran V M

Reputation: 3496

Ahmed,

You have use below cron expression to run processor daily at 12:30PM

0 30 12 1/1 * ? *

Check it here:http://www.cronmaker.com/

Upvotes: 8

Related Questions