# Cron timer

**URL:** <https://community.cumulocity.com/t/cron-timer/3907>\
**Category:** Forum\
**Tags:** Streaming-Analytics-Apama, cumulocity\
**Created:** [November 9, 2022, 11:51am UTC](https://community.cumulocity.com/t/cron-timer/3907 "2022-11-09T11:51:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![prathyusha.kanda](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@prathyusha.kanda](https://community.cumulocity.com/u/prathyusha.kanda)\
**Post date:** [November 9, 2022, 11:51am UTC](https://community.cumulocity.com/t/cron-timer/3907/1 "2022-11-09T11:51:58Z")

</div>

#### What product/components do you use and which version/fix level are you on?

latest

#### Is your question related to the free trial, or to a production (customer) instance?

production

#### What are you trying to achieve? Please describe it in detail.

How to write cron times if I would like to trigger every one hour for example [4:00:00,5:00:00] and reset 1st second of an hour[4:00:01,5:00:01].

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

#### Have you installed all the latest fixes for the products and systems you are using?

---

<div class="post-metadata">

**Author:** ![Harald\_Meyer](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/harald_meyer/32/1959_2.png) [@Harald\_Meyer](https://community.cumulocity.com/u/Harald_Meyer)\
**Post date:** [November 9, 2022, 12:03pm UTC](https://community.cumulocity.com/t/cron-timer/3907/2 "2022-11-09T12:03:31Z")

</div>

This Cron Timer fires every time at the hour:

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/e/0/e07c1814674c84a84adef383c8694fb3c41ffc30.png)

If you want to have another Cron Timer fire 1s after the hour, put a 1 into the seconds field.

---

<div class="post-metadata">

**Author:** ![prathyusha.kanda](https://avatars.discourse-cdn.com/v4/letter/p/90ced4/32.png) [@prathyusha.kanda](https://community.cumulocity.com/u/prathyusha.kanda)\
**Post date:** [November 9, 2022, 12:16pm UTC](https://community.cumulocity.com/t/cron-timer/3907/3 "2022-11-09T12:16:36Z")

</div>

If you want to have another Cron Timer fire 1s after the hour, put a 1 into the seconds field.  
Is it like this?

 ![image](https://europe1.discourse-cdn.com/flex005/uploads/cumulocity/original/3X/9/0/90041f3042c6dbc65c4e69cd2d7d715b35d0f9f7.png)

---

<div class="post-metadata">

**Author:** ![Harald\_Meyer](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/harald_meyer/32/1959_2.png) [@Harald\_Meyer](https://community.cumulocity.com/u/Harald_Meyer)\
**Post date:** [November 9, 2022, 12:28pm UTC](https://community.cumulocity.com/t/cron-timer/3907/4 "2022-11-09T12:28:31Z")

</div>

No, you still need to have the “0” in Minutes so that it only fires at 00:01. In your case it would fire 60 times an hour: 00:01, 01:01, 02:01, …, 59:01

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/community.cumulocity.com/system/32/31990_2.png) [@system](https://community.cumulocity.com/u/system)\
**Post date:** [May 8, 2023, 12:29pm UTC](https://community.cumulocity.com/t/cron-timer/3907/5 "2023-05-08T12:29:22Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
