<?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: REST API: Priority Parameter in TaskExecutionConfig in Qlik NPrinting</title>
    <link>https://community.qlik.com/t5/Qlik-NPrinting/REST-API-Priority-Parameter-in-TaskExecutionConfig/m-p/1669819#M27730</link>
    <description>&lt;P&gt;judging by my observation all metadata generation tasks get 1000 priority, and publish tasks 500... I would assume higher number gets priority.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure however what do you need this information for as API does not allow you to set it. It only allows you to get it (similar to what you see in task overview).&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Lech&lt;/P&gt;</description>
    <pubDate>Mon, 27 Jan 2020 22:48:29 GMT</pubDate>
    <dc:creator>Lech_Miszkiewicz</dc:creator>
    <dc:date>2020-01-27T22:48:29Z</dc:date>
    <item>
      <title>REST API: Priority Parameter in TaskExecutionConfig</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/REST-API-Priority-Parameter-in-TaskExecutionConfig/m-p/1669650#M27726</link>
      <description>&lt;P&gt;Does higher number gets higher priority or does lower number gets higher priority?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/nprinting/November2019/APIs/NP+API/index.html?page=109" target="_self"&gt;https://help.qlik.com/en-US/nprinting/November2019/APIs/NP+API/index.html?page=109&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 14:37:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/REST-API-Priority-Parameter-in-TaskExecutionConfig/m-p/1669650#M27726</guid>
      <dc:creator>MikeW</dc:creator>
      <dc:date>2020-01-27T14:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: REST API: Priority Parameter in TaskExecutionConfig</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/REST-API-Priority-Parameter-in-TaskExecutionConfig/m-p/1669819#M27730</link>
      <description>&lt;P&gt;judging by my observation all metadata generation tasks get 1000 priority, and publish tasks 500... I would assume higher number gets priority.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure however what do you need this information for as API does not allow you to set it. It only allows you to get it (similar to what you see in task overview).&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Lech&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 22:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/REST-API-Priority-Parameter-in-TaskExecutionConfig/m-p/1669819#M27730</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-01-27T22:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: REST API: Priority Parameter in TaskExecutionConfig</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/REST-API-Priority-Parameter-in-TaskExecutionConfig/m-p/1669824#M27732</link>
      <description>&lt;P&gt;The &lt;A href="https://help.qlik.com/en-US/nprinting/November2019/APIs/NP+API/index.html?page=49" target="_self"&gt;POST /tasks/{taskid}/executions&lt;/A&gt;&amp;nbsp; takes this config as an optional request body.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to pass it as a parameter when executing the POST call and can see the specified priority in the execution status. I ran it a bunch of times, but I didn't have enough server load to see any difference in how fast NPrinting got to my task.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the call I used.&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;		RestNPTaskTriggerTable:
		SQL SELECT
    		"__KEY_data",
    		"id",
    		"task",
    		"status"
		FROM JSON (wrap off) "data" PK "__KEY_data"
		WITH CONNECTION( 
        	URL "$(vEndpoint)", 
            HTTPHEADER "cookie" "$(vCookie)",
			HTTPHEADER "Origin" "$(vL.NPAPIOrigin)",
			HTTPHEADER "Content-Type" "application/json;charset=UTF-8",
			BODY "{""priority"":1000}"
        );&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 23:47:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/REST-API-Priority-Parameter-in-TaskExecutionConfig/m-p/1669824#M27732</guid>
      <dc:creator>MikeW</dc:creator>
      <dc:date>2020-01-27T23:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: REST API: Priority Parameter in TaskExecutionConfig</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/REST-API-Priority-Parameter-in-TaskExecutionConfig/m-p/1669841#M27734</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/86964"&gt;@MikeW&lt;/a&gt;&amp;nbsp;,you are right,&lt;/P&gt;&lt;P&gt;let me play with it and check if there is any usability of this parameter&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;LEch&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 03:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/REST-API-Priority-Parameter-in-TaskExecutionConfig/m-p/1669841#M27734</guid>
      <dc:creator>Lech_Miszkiewicz</dc:creator>
      <dc:date>2020-01-28T03:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: REST API: Priority Parameter in TaskExecutionConfig</title>
      <link>https://community.qlik.com/t5/Qlik-NPrinting/REST-API-Priority-Parameter-in-TaskExecutionConfig/m-p/1670086#M27737</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;1000 is the maximum priority. There are other optimization rules that determine the execution sequence and I don't know if we will made them public. In any case you can set API execution requests to 1000 to give them the maximum possible priority.&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Ruggero&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 14:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-NPrinting/REST-API-Priority-Parameter-in-TaskExecutionConfig/m-p/1670086#M27737</guid>
      <dc:creator>Ruggero_Piccoli</dc:creator>
      <dc:date>2020-01-28T14:45:28Z</dc:date>
    </item>
  </channel>
</rss>

