<?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: Can you select a job tag when queuing a job using the Gallery API? in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/789825#M9160</link>
    <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/1710"&gt;@michael_treadwell&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/21290"&gt;@mgrajkumar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/131927"&gt;@frog&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This appears to have been proposed as an Idea &lt;A href="https://community.alteryx.com/t5/Alteryx-Server-Ideas/API-function-for-assigning-worker-node-while-submitting-the-job/idi-p/556512" target="_self"&gt;here&lt;/A&gt; and secondarily &lt;A href="https://community.alteryx.com/t5/Alteryx-Server-Ideas/Private-Studio-Workflows-keep-Assigned-Workers-When-Setup-as-a/idc-p/729019/highlight/true#M2410" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; But it doesn't look as though there's been sufficient interest in it to justify the development of this feature.&amp;nbsp; I strongly encourage you to&amp;nbsp;Like &lt;A href="https://community.alteryx.com/t5/Alteryx-Server-Ideas/API-function-for-assigning-worker-node-while-submitting-the-job/idi-p/556512" target="_self"&gt;the post&lt;/A&gt;&amp;nbsp;and add your use case in the comments.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jul 2021 23:04:20 GMT</pubDate>
    <dc:creator>LisaL</dc:creator>
    <dc:date>2021-07-21T23:04:20Z</dc:date>
    <item>
      <title>Can you select a job tag when queuing a job using the Gallery API?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/331889#M2682</link>
      <description>&lt;P&gt;Can you select a worker tag for a job that is &lt;EM&gt;different&lt;/EM&gt; than the default tag for an app when queueing a job using the Gallery API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My permissions are set appropriately&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="permissions.PNG" style="width: 120px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/48778iC9699974BE65344B/image-size/small?v=v2&amp;amp;px=200" role="button" title="permissions.PNG" alt="permissions.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an app published to my Gallery called "api_tester" and I have configured the workflow settings to assign a specific worker "primary"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workflow_settings.PNG" style="width: 200px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/48780i4B06429181C2309F/image-size/small?v=v2&amp;amp;px=200" role="button" title="workflow_settings.PNG" alt="workflow_settings.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the workflow from the Gallery, I can choose which worker to assign the job even though the default is set as "primary". This is expected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="choose_worker_gallery.PNG" style="width: 400px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/48783i796BC452115528E7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="choose_worker_gallery.PNG" alt="choose_worker_gallery.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And it shouldn't surprise anyone that I can run the same app with two separate jobs on different worker tags&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="choose_worker_gallery_running.PNG" style="width: 200px;"&gt;&lt;img src="https://community.alteryx.com/t5/image/serverpage/image-id/48784i37C88EDC2814E762/image-size/small?v=v2&amp;amp;px=200" role="button" title="choose_worker_gallery_running.PNG" alt="choose_worker_gallery_running.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok now let's jump over to the Gallery API&lt;/P&gt;&lt;P&gt;Here is the app in question. You can see near the bottom that its default worker tag is "primary" because that is what has been chosen in the workflow settings on Gallery&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[
  {
    "id": "abcdef",
    "subscriptionId": "123456",
    "public": true,
    "runDisabled": false,
    "packageType": 0,
    "uploadDate": "2018-01-08T15:56:16.397Z",
    "fileName": "API Tester.yxwz",
    "metaInfo": {
      "name": "API Tester",
      "description": "",
      "author": "",
      "copyright": "",
      "url": "",
      "urlText": "",
      "outputMessage": "",
      "noOutputFilesMessage": ""
    },
    "isChained": false,
    "version": 1,
    "runCount": 2,
    "workerTag": "primary"
  }
]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ok so let's queue a job for this app. We'll use this endpoint:&lt;/P&gt;&lt;P&gt;/v1/workflows/{appId}/jobs/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which becomes&amp;nbsp;&lt;SPAN&gt;/v1/workflows/abcdef/jobs/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But wait... That endpoint only needs to pieces of information. The (1) application id and the (2) request body which includes the answers to the app question and the job priority as seen below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
  "questions": [
    {
      "name": "runtime",
      "value": "1"
    }
  ],
  "priority": "0"
}&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I don't have the option anywhere to pass a new worker tag when I queue a job so it will always run as the default that is set for the given application identifier. Even though, if I am using the Gallery web interface, I can choose a worker tag prior to a run regardless of the default settings in the workflow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Am I missing something here or are we not able to choose a worker tag at runtime for a job using the Gallery API?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 15:46:01 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/331889#M2682</guid>
      <dc:creator>michael_treadwell</dc:creator>
      <dc:date>2018-11-21T15:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can you select a job tag when queuing a job using the Gallery API?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/333544#M2710</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/1710"&gt;@michael_treadwell&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Edit: Adding a quick note - below response is applicable to Alteryx Server version 2018.4.3 and below.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Great question! I decided to dig into this one a little bit because I was also curious.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Initially, I took a look at our Gallery API documentation and found that there was no mention of the "workerTag" value except in the response data from Alteryx Server. I decided to take matters into my own hands and try to make the request&amp;nbsp;work anyways, just to see if it was something that happened to be missed in a documentation update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;POST data:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;  {
  "questions": 
    {
      "name": "",
      "value": ""
    },
  "workerTag": "test",
  "priority": "0"
  }&lt;/PRE&gt;
&lt;P&gt;However, it appears that this particular value does not get read by the API, as the response has a distinct lack of value, even when run with a valid tag.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Response to above POST:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
    "id": "5bfc6e53e2758f118c00508e",
    "appId": null,
    "createDate": "2018-11-26T22:06:11.6597153Z",
    "status": "Queued",
    "disposition": "None",
    "outputs": [],
    "messages": [],
    "priority": 0,
    "workerTag": ""
}&lt;/PRE&gt;
&lt;P&gt;I also confirmed that the workflow did not run on the back-end with the specified tag either, so the API response is correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With the above being true, it appears that this feature is not currently supported in the Gallery API which is supported by the documentation, though I think it would make a fantastic addition to our Server Ideas page if you would like to see this feature in the Gallery API in the future! You can find this below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.alteryx.com/t5/Alteryx-Server-Ideas/idb-p/server-ideas" target="_blank"&gt;https://community.alteryx.com/t5/Alteryx-Server-Ideas/idb-p/server-ideas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if you have any questions on this!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 22:29:02 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/333544#M2710</guid>
      <dc:creator>MikeSp</dc:creator>
      <dc:date>2018-11-26T22:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can you select a job tag when queuing a job using the Gallery API?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/482522#M4957</link>
      <description>Is this feature available in the latest version?</description>
      <pubDate>Wed, 30 Oct 2019 08:12:09 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/482522#M4957</guid>
      <dc:creator>mgrajkumar</dc:creator>
      <dc:date>2019-10-30T08:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can you select a job tag when queuing a job using the Gallery API?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/484685#M4990</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/21290"&gt;@mgrajkumar&lt;/a&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Currently, the Gallery API endpoint POST /v1/workflows/{appId}/jobs/ does not recognize or honor either&amp;nbsp;workerTag or jobName parameters and values.&amp;nbsp;Due to this, these functions are only available through the UI.&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;While our development team is currently&amp;nbsp;evaluating various improvements to the Gallery API, among those considerations is expanding this endpoint to allow these parameters, there is no current ETA on if or when this particular feature will be added. If you would like to see this particular functionality, I would recommend posting this as an idea on our &lt;A href="https://community.alteryx.com/t5/Alteryx-Server-Ideas/idb-p/server-ideas" target="_blank"&gt;Server Idea Board&lt;/A&gt;! This helps bring the idea and interest directly to our product team's attention.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 19:21:24 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/484685#M4990</guid>
      <dc:creator>KylieF</dc:creator>
      <dc:date>2019-11-04T19:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can you select a job tag when queuing a job using the Gallery API?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/635523#M7293</link>
      <description>&lt;P&gt;Hi KylieF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is it supported by latest version of 2020.03?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2020 12:01:36 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/635523#M7293</guid>
      <dc:creator>frog</dc:creator>
      <dc:date>2020-09-18T12:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Can you select a job tag when queuing a job using the Gallery API?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/789825#M9160</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/1710"&gt;@michael_treadwell&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/21290"&gt;@mgrajkumar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/131927"&gt;@frog&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;This appears to have been proposed as an Idea &lt;A href="https://community.alteryx.com/t5/Alteryx-Server-Ideas/API-function-for-assigning-worker-node-while-submitting-the-job/idi-p/556512" target="_self"&gt;here&lt;/A&gt; and secondarily &lt;A href="https://community.alteryx.com/t5/Alteryx-Server-Ideas/Private-Studio-Workflows-keep-Assigned-Workers-When-Setup-as-a/idc-p/729019/highlight/true#M2410" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; But it doesn't look as though there's been sufficient interest in it to justify the development of this feature.&amp;nbsp; I strongly encourage you to&amp;nbsp;Like &lt;A href="https://community.alteryx.com/t5/Alteryx-Server-Ideas/API-function-for-assigning-worker-node-while-submitting-the-job/idi-p/556512" target="_self"&gt;the post&lt;/A&gt;&amp;nbsp;and add your use case in the comments.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jul 2021 23:04:20 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/789825#M9160</guid>
      <dc:creator>LisaL</dc:creator>
      <dc:date>2021-07-21T23:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can you select a job tag when queuing a job using the Gallery API?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/910611#M10472</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/16463"&gt;@LisaL&lt;/a&gt;&amp;nbsp;, Has this been implemented in the latest version?. Anything you could share on this or any workarounds to achieve this functionality?.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2022 15:55:15 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/910611#M10472</guid>
      <dc:creator>mgrajkumar</dc:creator>
      <dc:date>2022-03-07T15:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can you select a job tag when queuing a job using the Gallery API?</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/912916#M10503</link>
      <description>&lt;P&gt;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/21290"&gt;@mgrajkumar&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;As far as I know, it has not.&amp;nbsp; All I can say at the moment is that I agree it would be a nice feature.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 21:26:17 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Can-you-select-a-job-tag-when-queuing-a-job-using-the-Gallery/m-p/912916#M10503</guid>
      <dc:creator>LisaL</dc:creator>
      <dc:date>2022-03-11T21:26:17Z</dc:date>
    </item>
  </channel>
</rss>

