# Scheduled tasks with breaks

**URL:** <https://forum.litium.com/t/scheduled-tasks-with-breaks/951>\
**Category:** Questions\
**Created:** [June 27, 2019, 12:22pm UTC](https://forum.litium.com/t/scheduled-tasks-with-breaks/951 "2019-06-27T12:22:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mickeostling](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/mickeostling/32/101_2.png) [@mickeostling](https://forum.litium.com/u/mickeostling)\
**Post date:** [June 27, 2019, 12:22pm UTC](https://forum.litium.com/t/scheduled-tasks-with-breaks/951/1 "2019-06-27T12:22:55Z")

</div>

We have a scheduled task, running daily every 5 minute. We need to find a solution where this job “takes a break” on Sundays between 00:00 and 06:00.

Any good ideas on how to solve this?

Litium version: 6

---

<div class="post-metadata">

**Author:** ![marten](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/marten/32/11_2.png) [@marten](https://forum.litium.com/u/marten)\
**Post date:** [June 27, 2019, 12:33pm UTC](https://forum.litium.com/t/scheduled-tasks-with-breaks/951/2 "2019-06-27T12:33:53Z")

</div>

Set it in the first line of code in the task, either hard-coded or by passing configuration as a parameter to the task.

---

<div class="post-metadata">

**Author:** ![mickeostling](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/mickeostling/32/101_2.png) [@mickeostling](https://forum.litium.com/u/mickeostling)\
**Post date:** [June 28, 2019, 8:50am UTC](https://forum.litium.com/t/scheduled-tasks-with-breaks/951/3 "2019-06-28T08:50:36Z")

</div>

Thank you Mårten for the tip. We will implement a hard-coded schedule break within the task.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [July 26, 2019, 8:50am UTC](https://forum.litium.com/t/scheduled-tasks-with-breaks/951/4 "2019-07-26T08:50:37Z")

</div>

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