# What is the difference between Agent rule pattern, Time interval  and Agent Schedule pattern, Time interval

**URL:** <https://forums.pega.com/t/what-is-the-difference-between-agent-rule-pattern-time-interval-and-agent-schedule-pattern-time-interval/2444>\
**Category:** General\
**Tags:** system-administration, pega-platform\
**Created:** [March 31, 2022, 6:35pm UTC](https://forums.pega.com/t/what-is-the-difference-between-agent-rule-pattern-time-interval-and-agent-schedule-pattern-time-interval/2444 "2022-03-31T18:35:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SaibalKantiB](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/saibalkantib/32/9141_2.png) [@SaibalKantiB](https://forums.pega.com/u/SaibalKantiB)\
**Post date:** [March 31, 2022, 6:35pm UTC](https://forums.pega.com/t/what-is-the-difference-between-agent-rule-pattern-time-interval-and-agent-schedule-pattern-time-interval/2444/1 "2022-03-31T18:35:12Z")

</div>

Hi,

Both Agent and Agent Schedule have Pattern, Time interval field.  
I want to know why 2 times we need to mention it? If Agent Schedule is holding the responsibility to run the agent in a specific time / specific interval then what is the use for those fields in Agent?

In case if, a Master Agent and Agent Schedule have different Pattern, Time interval for a specific child Agent, then which one will be considered and why?

 ![Agent.JPG](https://pega1.discourse-cdn.com/pega/original/2X/e/eff81a87dcf4d2616e8fdfb673ae20db18fa86b3.jpeg)

 ![Agent Schedule.JPG](https://pega1.discourse-cdn.com/pega/original/2X/6/6ea24659c6cf2c9d30b88b12d6d8ba717c292757.jpeg)

---

<div class="post-metadata">

**Author:** ![PIYUSH\_SINHA](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/piyush_sinha/32/23409_2.png) [@PIYUSH\_SINHA](https://forums.pega.com/u/PIYUSH_SINHA)\
**Post date:** [April 25, 2022, 6:16am UTC](https://forums.pega.com/t/what-is-the-difference-between-agent-rule-pattern-time-interval-and-agent-schedule-pattern-time-interval/2444/2 "2022-04-25T06:16:41Z")

</div>

@SaibalKantiB

Agent is a rule which holds the main configuration.

Agent schedule is a data instance created automatically for every node in the system (we don’t need to create Agent Schedule).

Configurations mentions in the Agents schedule will be applicable at run time in the specific node.

Agent schedule configuration is automatically copied from the Agent but it can be modified independently for every node at run time. But after server restart/Agent Schedule data instance deletion, fresh agent schedule is created for every node based on configuration of Agent rule.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![SaibalKantiB](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/saibalkantib/32/9141_2.png) [@SaibalKantiB](https://forums.pega.com/u/SaibalKantiB)\
**Post date:** [May 5, 2022, 5:18pm UTC](https://forums.pega.com/t/what-is-the-difference-between-agent-rule-pattern-time-interval-and-agent-schedule-pattern-time-interval/2444/3 "2022-05-05T17:18:21Z")

</div>

@PIYUSHSINHA , thank you so much for explaining this.
