<?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: Schedule a task for hourly replication in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Schedule-a-task-for-hourly-replication/m-p/2067763#M5893</link>
    <description>&lt;P&gt;We've done this creatively by scheduling it via Task Scheduler on the app server.&amp;nbsp; Example:&lt;/P&gt;
&lt;P&gt;D:\attunity\replicate\bin\repctl.exe -d E:\data connect; execute [taskname] 1 Flags=1; disconnect&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 15:24:39 GMT</pubDate>
    <dc:creator>PGN</dc:creator>
    <dc:date>2023-05-04T15:24:39Z</dc:date>
    <item>
      <title>Schedule a task for hourly replication</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Schedule-a-task-for-hourly-replication/m-p/2067757#M5892</link>
      <description>&lt;P&gt;How to schedule a task for hourly replication in Qlik Replicate?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 15:14:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Schedule-a-task-for-hourly-replication/m-p/2067757#M5892</guid>
      <dc:creator>srahul</dc:creator>
      <dc:date>2023-05-04T15:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule a task for hourly replication</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Schedule-a-task-for-hourly-replication/m-p/2067763#M5893</link>
      <description>&lt;P&gt;We've done this creatively by scheduling it via Task Scheduler on the app server.&amp;nbsp; Example:&lt;/P&gt;
&lt;P&gt;D:\attunity\replicate\bin\repctl.exe -d E:\data connect; execute [taskname] 1 Flags=1; disconnect&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 15:24:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Schedule-a-task-for-hourly-replication/m-p/2067763#M5893</guid>
      <dc:creator>PGN</dc:creator>
      <dc:date>2023-05-04T15:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule a task for hourly replication</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Schedule-a-task-for-hourly-replication/m-p/2067771#M5897</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/214534"&gt;@srahul&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's no hourly option for the scheduler so you will need to make 24 different scheduled jobs to run at the top of the specific hour or create some custom scripts to execute APIs that will run one-time scheduled jobs on an hourly basis.&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 15:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Schedule-a-task-for-hourly-replication/m-p/2067771#M5897</guid>
      <dc:creator>Alan_Wang</dc:creator>
      <dc:date>2023-05-04T15:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule a task for hourly replication</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Schedule-a-task-for-hourly-replication/m-p/2067816#M5900</link>
      <description>&lt;P&gt;There IS an hourly option, it is just not available through the GUI.&lt;/P&gt;
&lt;P&gt;If you do an exportrepository, what do you see? you might see:&amp;nbsp;"schedule": "0 17 * * * *",&lt;/P&gt;
&lt;P&gt;What does that look like? Yes! A CRON job schedule string. Those are well documented for example in :&amp;nbsp;&lt;A href="https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules" target="_blank"&gt;https://cloud.google.com/scheduler/docs/configuring/cron-job-schedules&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;So for every hour you can edit the JSON and indicate 0 0-24 * * * *&amp;nbsp; for every 2 hours&amp;nbsp;0 */2 * * * *&lt;/P&gt;
&lt;P&gt;For a quick 'trust but verify' test I&amp;nbsp; tested every 2 minutes both using 31,33,35,37 * * * * * and 0/2 * * * * *&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Works fine!&amp;nbsp; After importrepository with the desired schedule I did have to un-schedule a job, save, reschedule and save again to 'activate' the recently imported schedules.&lt;/P&gt;
&lt;P&gt;Btw... the arguments in the&amp;nbsp;"execute_req" section for the scheduler match the REPCTL EXECUTE arguments, should you ever feel the desire to experiment with that. (see below)&lt;/P&gt;
&lt;P&gt;Hein.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;C:\scripts&amp;gt;repctl execute ?
command execute:
    request arguments:

    task:required string
    operation:required enum, valid values:
            01 - EXECUTE_OPERATIONS_LOAD
            02 - EXECUTE_OPERATIONS_CDC
            03 - EXECUTE_OPERATIONS_BOTH

    flags:optional enum, valid values:
            00 - RESUME
            01 - FRESH
            02 - METADATA_ONLY
            03 - FRESH_METADATA_ONLY
            04 - COLLECTION
            08 - RECOVERY
            16 - DIAAS
            17 - FRESH_DIAAS
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 18:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Schedule-a-task-for-hourly-replication/m-p/2067816#M5900</guid>
      <dc:creator>Heinvandenheuvel</dc:creator>
      <dc:date>2023-05-04T18:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule a task for hourly replication</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Schedule-a-task-for-hourly-replication/m-p/2486293#M12939</link>
      <description>&lt;P&gt;I tried with REST API #&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Token for REST API:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;[qlikappq@XXX-uvlqlkq01 ~]$ echo -n '529300@tmm:TamyaXXXXXX' | base64&lt;/P&gt;
&lt;P&gt;GBD9gNYDx5ayfgNM0o_GIB&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;And with following command I am able to run the Job&amp;nbsp; successfully :&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;curl -i -k -X POST --header "EnterpriseManager.APISessionID: GBD9gNYDx5ayfgNM0o_GIB" --header "Content-Length: 0"&amp;nbsp; &lt;A href="https://server.com/attunityenterprisemanager/api/v1/servers/DDC_QA_SERVER/tasks/NPPS_AS400_PR_SRC_PG_Tgt_FULL?action=run%22&amp;amp;%22option=RELOAD_TARGET" target="_blank"&gt;https://server.com/attunityenterprisemanager/api/v1/servers/DDC_QA_SERVER/tasks/NPPS_AS400_PR_SRC_PG_Tgt_FULL?action=run"&amp;amp;"option=RELOAD_TARGET&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2024 21:06:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Schedule-a-task-for-hourly-replication/m-p/2486293#M12939</guid>
      <dc:creator>nareshkumar</dc:creator>
      <dc:date>2024-10-09T21:06:21Z</dc:date>
    </item>
  </channel>
</rss>

