Trigger type 'Repeat' vs 'Interval' in a scheduled job?

Suggy
Giga Sage

Trigger type 'Repeat' vs 'Interval' in a scheduled job, whats the difference? I dont see any difference when I select Repeat or Interval......

 

1. Interval

Suggy_0-1734590976717.png

2. Repeat

Suggy_1-1734591001005.png

 

PS - I saw this post but I did still its not clear for me

https://www.servicenow.com/community/now-platform-forum/what-is-the-difference-schedule-item-s-trigg...

 

1 ACCEPTED SOLUTION

Bhupender
Tera Expert

Hi @Suggy 

 

There is minor difference between Repeat and interval lets dive into this:

 

1. "Repeat" starts at a specific time and repeats at fixed intervals from that time.

2, "Interval" runs based on the last run time, making it more flexible.

  • Use Case: Use "Repeat" when you need the job to run at specific times (e.g., every day at 8:00 AM).

  • Use "Interval" when the job should run at regular intervals based on the last execution time (e.g., every 2 hours after the last run).

lets dive in more details we set 1 hour run time for both Repeat and Interval

---in Repeat case it will run in every 1 hour 

---but in Interval time it will run after 1 hour when last job execute. like last job execute at 8:30 so it will run at 9:30 and due to some reason next job will run at 10:00 so it will run at 11:00.

 

 

Hope this will help you and don't forget to mark it Helpful  if you find this helpful.

 

 

View solution in original post

7 REPLIES 7

JenniferRah
Mega Sage

That post seems to be the best answer I can find. Interval runs it ONE TIME, at the given interval. Repeat runs it REPEATEDLY at the given interval. 

 

So if you have a trigger set as Interval and 1 day, it will run in 1 day and then never run again.

 

If you have a trigger set as Repeat and 1 day, it will run every day.

Hi @JenniferRah see the first screenshot which days interval. It's an oob job for auto closing Incidents from resolved state. It runs every 1 hour even though continuously. So interval is not one time run 🙂

So that details in that post is wrong right 🙂

Hi @JenniferRah 

I think the description of the "Interval" trigger is incorrect. The "Interval" trigger runs every interval of time, starting from the time the last job ran.

Bhupender
Tera Expert

Hi @Suggy 

 

There is minor difference between Repeat and interval lets dive into this:

 

1. "Repeat" starts at a specific time and repeats at fixed intervals from that time.

2, "Interval" runs based on the last run time, making it more flexible.

  • Use Case: Use "Repeat" when you need the job to run at specific times (e.g., every day at 8:00 AM).

  • Use "Interval" when the job should run at regular intervals based on the last execution time (e.g., every 2 hours after the last run).

lets dive in more details we set 1 hour run time for both Repeat and Interval

---in Repeat case it will run in every 1 hour 

---but in Interval time it will run after 1 hour when last job execute. like last job execute at 8:30 so it will run at 9:30 and due to some reason next job will run at 10:00 so it will run at 11:00.

 

 

Hope this will help you and don't forget to mark it Helpful  if you find this helpful.