<?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 Run Workflows by Command Line on Server - Alteryx Gallery in Alteryx Server Discussions</title>
    <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/570645#M6329</link>
    <description>&lt;P&gt;Hi Users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to run the workflows by command line on Alteryx Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I came across a help page, which describes the command to trigger the worklfow:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.alteryx.com/2018.3/Command_Line.htm" target="_blank" rel="noopener"&gt;https://help.alteryx.com/2018.3/Command_Line.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however, here we need to run the workflow from the location where it's saved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how to achieve it on Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, if we are able to run the workflow via command line on server.&lt;/P&gt;&lt;P&gt;and assuming we are triggering it via windows schedular every minute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it takes longer than 1 minute to run the first execution, would the second run will get queued assuming we have set the server settings to allow only one execution at a time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to check via command line, if first execution is on run, not to initiate second execution and do it only when first execution is finished.&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2020 21:20:10 GMT</pubDate>
    <dc:creator>amitbanwar</dc:creator>
    <dc:date>2020-05-14T21:20:10Z</dc:date>
    <item>
      <title>Run Workflows by Command Line on Server - Alteryx Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/570645#M6329</link>
      <description>&lt;P&gt;Hi Users,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to run the workflows by command line on Alteryx Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I came across a help page, which describes the command to trigger the worklfow:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.alteryx.com/2018.3/Command_Line.htm" target="_blank" rel="noopener"&gt;https://help.alteryx.com/2018.3/Command_Line.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however, here we need to run the workflow from the location where it's saved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how to achieve it on Server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondly, if we are able to run the workflow via command line on server.&lt;/P&gt;&lt;P&gt;and assuming we are triggering it via windows schedular every minute.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it takes longer than 1 minute to run the first execution, would the second run will get queued assuming we have set the server settings to allow only one execution at a time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to check via command line, if first execution is on run, not to initiate second execution and do it only when first execution is finished.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 21:20:10 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/570645#M6329</guid>
      <dc:creator>amitbanwar</dc:creator>
      <dc:date>2020-05-14T21:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Run Workflows by Command Line on Server - Alteryx Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/570974#M6339</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/81829"&gt;@amitbanwar&lt;/a&gt;! What is your use case here? Since you have the alteryx server, it seems like the gallery would be the way to go. That would allow you to schedule a job every minute. I'm not sure what would happen if it took longer than 1 minute, I'm partly guessing, but I think the gallery would just wait to fire the next job until the first one completes.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 11:57:34 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/570974#M6339</guid>
      <dc:creator>patrick_digan</dc:creator>
      <dc:date>2020-05-15T11:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Run Workflows by Command Line on Server - Alteryx Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/571006#M6341</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/97358"&gt;@patrick2&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, we have a requirement where we need to run the workflow every 5 seconds, this workflow is checking a blob storage for any new files.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it finds a new file, it triggers another workflow to process that file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With Server Scheduler, we have to wait at least a minute to trigger the next run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We thought it is possible to achieve this scenario using windows scheduler by running a bat file every 5 seconds.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or to trigger the same workflow by configuring it's event to trigger it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I am not sure how to use the command line to trigger the workflow published on server. As the command line argument requires to provide the path of workflow &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help only this matter will be really appreciated &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 13:04:57 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/571006#M6341</guid>
      <dc:creator>amitbanwar</dc:creator>
      <dc:date>2020-05-15T13:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Run Workflows by Command Line on Server - Alteryx Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/571011#M6342</link>
      <description>&lt;P&gt;I found this post that may help you get to this frequency.&amp;nbsp; Basically, you'd have an iterative macro that's iterating every 5 secs to do the file check.&amp;nbsp; The calling workflow would be always running to allow the file check to continuously occur.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Event-Driven-Workflow-Triggers-for-Alteryx-Server/td-p/139585" target="_blank"&gt;https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Event-Driven-Workflow-Triggers-for-Alteryx-Server/td-p/139585&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 13:19:57 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/571011#M6342</guid>
      <dc:creator>MattBSlalom</dc:creator>
      <dc:date>2020-05-15T13:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Run Workflows by Command Line on Server - Alteryx Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/571340#M6350</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/12958"&gt;@MattBSlalom&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But with Iterative macro, I will need to provide the maximum number of iterations.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I do not want my workflow to stop unless stopped manually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to achieve that with Iterative macro.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 20:21:35 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/571340#M6350</guid>
      <dc:creator>amitbanwar</dc:creator>
      <dc:date>2020-05-15T20:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Run Workflows by Command Line on Server - Alteryx Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/572338#M6364</link>
      <description>&lt;P&gt;You could provide the number of iterations for 1 minute (60 secs / 5 secs = 12 iterations), then schedule it to run every minute on the server.&amp;nbsp; So you'll wind up with continuous checking over many individual workflow executions.&lt;/P&gt;</description>
      <pubDate>Mon, 18 May 2020 14:13:10 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/572338#M6364</guid>
      <dc:creator>MattBSlalom</dc:creator>
      <dc:date>2020-05-18T14:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Run Workflows by Command Line on Server - Alteryx Gallery</title>
      <link>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/572394#M6366</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/81829"&gt;@amitbanwar&lt;/a&gt;&amp;nbsp;, I also wanted to mention, from an Alteryx Server resource perspective it is not recommended to run workflows outside of the Alteryx Service/Gallery environment.&amp;nbsp; Workflows run through the Alteryx Gallery and Scheduler use a queuing process to help maintain a balance of the number of workflows running at any given time (&lt;A href="https://help.alteryx.com/20201/server/worker" target="_blank" rel="noopener"&gt;workflows allowed to run simultaneously)&lt;/A&gt;&amp;nbsp;and the available system resources (RAM and CPU) to allow for workflow execution and to reserve enough resources for the operating system.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Workflows that are run via command line on the Alteryx Server are run&amp;nbsp;&lt;EM&gt;outside&lt;/EM&gt; of the queuing process and would be additional load on the server resources. For example if the server is configured to run 4 workflows at any given time (based on server resources), between manually executed and scheduled jobs, and then a workflow is run through the command line, there will be 5 workflows running at once and my put a strain on the server resources.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The suggestions of&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/2387"&gt;@patrick_digan&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/12958"&gt;@MattBSlalom&lt;/a&gt;&amp;nbsp;would probably be the first place to investigate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alteryx.com/t5/Engine-Works-Blog/Intro-to-the-Server-command-line/ba-p/13380" target="_blank" rel="noopener"&gt;This article&lt;/A&gt; from&amp;nbsp;&lt;a href="https://community.alteryx.com/t5/user/viewprofilepage/user-id/3835"&gt;@stevea&lt;/a&gt;&amp;nbsp;shows a way to use a command line option to add a workflow to the Sever queue, under the heading 'Scheduling from the command line' which may also be an option for you.&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;</description>
      <pubDate>Mon, 18 May 2020 15:21:54 GMT</pubDate>
      <guid>https://community.alteryx.com/t5/Alteryx-Server-Discussions/Run-Workflows-by-Command-Line-on-Server-Alteryx-Gallery/m-p/572394#M6366</guid>
      <dc:creator>PeterS</dc:creator>
      <dc:date>2020-05-18T15:21:54Z</dc:date>
    </item>
  </channel>
</rss>

