# Scheduling a Task at Regular Intervals Regardless of Installation Time

**URL:** <https://community.developer.atlassian.com/t/scheduling-a-task-at-regular-intervals-regardless-of-installation-time/80439>\
**Category:** Forge Modules and Product Triggers\
**Tags:** scheduled-triggers, jira-cloud, forge\
**Created:** [May 31, 2024, 7:49am UTC](https://community.developer.atlassian.com/t/scheduling-a-task-at-regular-intervals-regardless-of-installation-time/80439 "2024-05-31T07:49:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![StefanKonrad1](https://avatars.discourse-cdn.com/v4/letter/s/b9e5f3/32.png) [@StefanKonrad1](https://community.developer.atlassian.com/u/StefanKonrad1)\
**Post date:** [May 31, 2024, 7:49am UTC](https://community.developer.atlassian.com/t/scheduling-a-task-at-regular-intervals-regardless-of-installation-time/80439/1 "2024-05-31T07:49:18Z")

</div>

For our project we need a script running each full hour. Better would be every 15 or 30 minutes. Since the scheduled trigger time depends on the installation time and has a maximum run time, it is not optimal for our situation. Is there a way to solve this issue?

---

<div class="post-metadata">

**Author:** ![FelipeCauFragaCarnei](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/felipecaufragacarnei/32/42918_2.png) [@FelipeCauFragaCarnei](https://community.developer.atlassian.com/u/FelipeCauFragaCarnei)\
**Post date:** [May 31, 2024, 3:02pm UTC](https://community.developer.atlassian.com/t/scheduling-a-task-at-regular-intervals-regardless-of-installation-time/80439/2 "2024-05-31T15:02:51Z")

</div>

Hi, take a look at this Forge module:  
[https://developer.atlassian.com/platform/forge/manifest-reference/modules/scheduled-trigger/](https://developer.atlassian.com/platform/forge/manifest-reference/modules/scheduled-trigger/)  
It allows you to schedule the execution of functions.

---

<div class="post-metadata">

**Author:** ![JanaWinkelbauer](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/janawinkelbauer/32/51077_2.png) [@JanaWinkelbauer](https://community.developer.atlassian.com/u/JanaWinkelbauer)\
**Post date:** [May 31, 2024, 4:13pm UTC](https://community.developer.atlassian.com/t/scheduling-a-task-at-regular-intervals-regardless-of-installation-time/80439/3 "2024-05-31T16:13:33Z")

</div>

Scheduled triggers are not running on full hours (eg. 05:00) but depending on installation time (eg. 05:27).  
Also, as far as I know, they have a maximum run time until they get cancelled automatically. That means you can’t wait for the full hour to occur after starting, e.g. if the trigger happens at 05:27 its not possible to wait until 06:00 and execute scripts then.  
So there probably needs to be another solution, or am I misinformed?

---

<div class="post-metadata">

**Author:** ![yongchong.long](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/yongchong.long/32/48711_2.png) [@yongchong.long](https://community.developer.atlassian.com/u/yongchong.long)\
**Post date:** [June 9, 2024, 2:18pm UTC](https://community.developer.atlassian.com/t/scheduling-a-task-at-regular-intervals-regardless-of-installation-time/80439/4 "2024-06-09T14:18:10Z")

</div>

My understanding of scheduled trigger is the same, that it’s based on intervals instead of fixed time, hopefully that be supported soon (or perhaps the feature exists and we missed it) but at the mean time, I haven’t tried this idea and it might be unnecessarily complicated - what if you use some form of cron job outside of Forge or even something like AWS EventBridge Scheduler to schedule a Lambda function that calls Forge web trigger?
