<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cron expression for advanced task scheduling in Qlik Compose</title>
    <link>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2413452#M1263</link>
    <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;The following cron expression might be useful:&lt;BR /&gt;0 7-21 * * 1-5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should run every hour from 07:00 (7 AM) to 21:00 (9 PM) on every day-of-week from Monday through Friday.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2024 08:42:14 GMT</pubDate>
    <dc:creator>tober</dc:creator>
    <dc:date>2024-02-01T08:42:14Z</dc:date>
    <item>
      <title>cron expression for advanced task scheduling</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2412134#M1251</link>
      <description>&lt;P&gt;Any cron experts out there?&lt;/P&gt;
&lt;P&gt;I am trying to schedule a task which runs hourly from 7a-9p during the work week (7a, 8a, 9a, ... 8p, 9p).&lt;/P&gt;
&lt;P&gt;The solution which almost works is&amp;nbsp;0 0 13-3 ? * 2-6 (our server is on CST)&lt;/P&gt;
&lt;P&gt;The issue is that the end of the task runs into the next day in UTC, so on Friday I only get updates until 5p, then the task picks up again with 4 runs on Sunday night (6p, 7p, 8p, 9p).&lt;/P&gt;
&lt;P&gt;If I need to split this into 2, that's OK, but I am hoping there is a way to be more efficient by making a change to the cron expression...&lt;/P&gt;
&lt;P&gt;Thanks for the help, all!&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Qlik Compose for Data Warehouses" id="qlikComposeDataWarehouses"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="Qlik Compose" id="qlikcompose"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Mar 2025 20:49:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2412134#M1251</guid>
      <dc:creator>JacobTews</dc:creator>
      <dc:date>2025-03-14T20:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: cron expression for advanced task scheduling</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2413452#M1263</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;&lt;BR /&gt;The following cron expression might be useful:&lt;BR /&gt;0 7-21 * * 1-5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It should run every hour from 07:00 (7 AM) to 21:00 (9 PM) on every day-of-week from Monday through Friday.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 08:42:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2413452#M1263</guid>
      <dc:creator>tober</dc:creator>
      <dc:date>2024-02-01T08:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: cron expression for advanced task scheduling</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2413658#M1264</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/245244"&gt;@tober&lt;/a&gt;. That would be the simple solution, except that cron expressions in Compose are in UTC, but our server is CST (UST - 6), which is resulting in the issue...&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2024 15:40:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2413658#M1264</guid>
      <dc:creator>JacobTews</dc:creator>
      <dc:date>2024-02-01T15:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: cron expression for advanced task scheduling</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2420373#M1282</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/223649"&gt;@JacobTews&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Welcome and Thank you for reaching out to us on Qlik Community.&lt;/P&gt;
&lt;P&gt;The expression you’ve provided (0 0 13-3 ? * 2-6) seems to be intended to run a task every hour from 7 AM to 9 PM Central Standard Time (CST) on weekdays.&lt;/P&gt;
&lt;P&gt;However, as you’ve noticed, this expression doesn’t account for the time difference between CST and Coordinated Universal Time (UTC). As a result, the task ends earlier than expected on Fridays and resumes on Sunday evenings.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Consider splitting the cron expression into two:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;1. One for the period from 7 AM to 11 PM CST (which is 12 PM to 4 AM UTC the next day): 0 12-4 ? * 2-6&lt;/P&gt;
&lt;P&gt;2. Another for the period from 12 AM to 9 PM CST (which is 5 AM to 2 AM UTC): 0 5-2 ? * 1-6&lt;/P&gt;
&lt;P&gt;This way, the task will run every hour from 7 AM to 9 PM CST on weekdays, as intended.&lt;/P&gt;
&lt;P&gt;Please note that these expressions assume that your server is set to UTC. If it’s set to another timezone, you’ll need to adjust the hours accordingly.&lt;/P&gt;
&lt;PRE&gt;&lt;BR /&gt;&lt;EM&gt;For the period from 7 AM to 11 PM CST (which is 12 PM to 4 AM UTC the next day):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0 12-4 ? * 2-6 &amp;lt;command&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;For the period from 12 AM to 9 PM CST (which is 5 AM to 2 AM UTC):&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;0 5-2 ? * 1-6 &amp;lt;command&amp;gt;&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;Replace &amp;lt;command&amp;gt; with the command you want to run. &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;These scripts will schedule your command to run every hour from 7 AM to 9 PM CST on weekdays.&lt;/EM&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;I hope this helps! Let me know if you have any other queries.&lt;/P&gt;
&lt;PRE&gt;If our response has been helpful, please consider clicking "Accept as Solution". &lt;BR /&gt;This will assist other users in easily finding the answer.&amp;nbsp;‌&lt;/PRE&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Deepak Ahirwar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Feb 2024 05:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2420373#M1282</guid>
      <dc:creator>deepaksahirwar</dc:creator>
      <dc:date>2024-02-18T05:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: cron expression for advanced task scheduling</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2420870#M1283</link>
      <description>&lt;P&gt;Thanks so much,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/145818"&gt;@deepaksahirwar&lt;/a&gt;. This pointed me in the right direction!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a solution which I believe is correct now:&lt;/P&gt;
&lt;P&gt;1. One task runs in UTC 13:00-23:00 Monday-Friday, which equates to CST 7:00-17:00 Monday-Friday, since CST is -6 hrs from UTC&lt;/P&gt;
&lt;P&gt;0 0 13-23 ? * 2-6&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. A second task runs in UTC 0:00-3:00 Tuesday-Saturday, which equates to CST 18:00-21:00 Monday-Friday&lt;/P&gt;
&lt;P&gt;0 0 0-3 ? * 3-7&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For any of y'all working with cron expressions here in Compose, it is important to note that &lt;U&gt;Sunday is 1, not 0 or 7&lt;/U&gt;.&lt;/P&gt;
&lt;P&gt;This page of the Compose documentation is wonderful and exactly what I needed; somehow I hadn't discovered it until now:&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/compose/November2023/Content/ComposeDWDL/Main/DW/Cron%20Format%20and%20Examples/cron_format_and_example.htm#ar_app_cron_2315632926_1348192" target="_blank"&gt;https://help.qlik.com/en-US/compose/November2023/Content/ComposeDWDL/Main/DW/Cron%20Format%20and%20Examples/cron_format_and_example.htm#ar_app_cron_2315632926_1348192&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 18:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2420870#M1283</guid>
      <dc:creator>JacobTews</dc:creator>
      <dc:date>2024-02-19T18:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: cron expression for advanced task scheduling</title>
      <link>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2420927#M1284</link>
      <description>&lt;P&gt;Dear &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/223649"&gt;@JacobTews&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Most welcome... &lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you for reviewing the solution and sharing the document link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Deepak&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 01:11:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Compose/cron-expression-for-advanced-task-scheduling/m-p/2420927#M1284</guid>
      <dc:creator>deepaksahirwar</dc:creator>
      <dc:date>2024-02-20T01:11:59Z</dc:date>
    </item>
  </channel>
</rss>

