<?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: Unexpected behaviour when scheduling a flow containing other flows in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Unexpected-behaviour-when-scheduling-a-flow-containing-other/m-p/854840#M1631</link>
    <description>&lt;P&gt;The problem has now been reproduced in another environment. So at least I'm not alone.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;A support track is opened:&amp;nbsp;&lt;STRONG&gt;7613725502&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 14:45:42 GMT</pubDate>
    <dc:creator>FredrikHansson</dc:creator>
    <dc:date>2023-01-20T14:45:42Z</dc:date>
    <item>
      <title>Unexpected behaviour when scheduling a flow containing other flows</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Unexpected-behaviour-when-scheduling-a-flow-containing-other/m-p/854800#M1630</link>
      <description>&lt;P&gt;&lt;SPAN&gt;New day, new scheduling problems!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We had some difficulties with scheduling in Viya before. The first (&lt;A href="https://communities.sas.com/t5/SAS-Viya/Jobs-and-Flows-How-do-I-schedule-a-flow/m-p/853016#M1612" target="_blank" rel="noopener"&gt;Jobs and Flows - How do I schedule a flow?&lt;/A&gt;) turned out to be a bug, the other (&lt;A href="https://communities.sas.com/t5/SAS-Viya/How-do-I-make-my-scheduled-flow-to-actually-run/td-p/854560" target="_blank" rel="noopener"&gt;How do I make my scheduled flow to actually run?&lt;/A&gt;) a user mistake.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Let´s what´s the problem this time. &lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1&gt;The task&lt;/H1&gt;
&lt;P&gt;&lt;SPAN&gt;We have three different flows “Personal-data”, “Senioralert 1-8” and “Swedeheart 1-8”. Each of the flows contains a number of SAS Studio flows who are to be run in a certain order.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;“Senioralert 1-8” and “Swedeheart 1-8” can run in parallel, but “Personal-data” must run befor them both.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We created the flow “Nattbatchen” ( “The night batch” in swedish &lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;SPAN&gt;) that contains “Personal-data”, “Senioralert 1-8” and “Swedeheart 1-8”.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&amp;nbsp;The flows in the pictures below are built in Environment Manager --&amp;gt; "Jobs and Flows". Not to be confused with the kind of flows that are built in SAS studio.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here are pictures of all four flows:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikHansson_0-1674211362721.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79550i4E310CAF8E79F638/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredrikHansson_0-1674211362721.png" alt="FredrikHansson_0-1674211362721.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikHansson_1-1674211362745.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79551iEBC036AECC7DB150/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredrikHansson_1-1674211362745.png" alt="FredrikHansson_1-1674211362745.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikHansson_2-1674211362772.png" style="width: 222px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79552iBECD967DA82D15CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredrikHansson_2-1674211362772.png" alt="FredrikHansson_2-1674211362772.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikHansson_3-1674211362784.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79553i447E9B4B6B2B7693/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredrikHansson_3-1674211362784.png" alt="FredrikHansson_3-1674211362784.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(as you can see there is more happening in “Nattbatchen”, but it shouldn’t be relevant to my issue)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1&gt;&lt;SPAN&gt;My problem&lt;/SPAN&gt;&lt;/H1&gt;
&lt;P&gt;&lt;SPAN&gt;When I trigger the main flow “Nattbatchen” manually (by right-clicking and selecting “Execute” everything executes in the order I expect it to.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;But when I schedule “Nattbatchen” the order in the subflows ar not respected. All SAS Studio Flows in the “Personal-data”-flow are triggered at the same time.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I hope these pictures will describe the problem better:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Expected behavior&lt;/STRONG&gt; (happens when running “Nattbatchen” manually)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikHansson_4-1674211362819.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79554iFA9DA226C1F95B60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredrikHansson_4-1674211362819.png" alt="FredrikHansson_4-1674211362819.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As you can see the pdbatch*-flows run one at a time. Sa2batch*-flows run one at a time, shtbatch*-flows run one at a time (in parallel with sa2batch* which is what I want)&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;&lt;SPAN&gt;&lt;STRONG&gt;Unexpected behavior&lt;/STRONG&gt; (happens when “Nattbatchen” is scheduled to run at a specific time)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FredrikHansson_5-1674211362853.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/79555i2027B9D7DE9FA53D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FredrikHansson_5-1674211362853.png" alt="FredrikHansson_5-1674211362853.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All pdbatch-flows are started at the same time. Shtbatch* and sa2batch* waits for pdbatch, but are then started all at the same time.&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;&lt;SPAN&gt;We are using Viya 2022.09. Is there someone experiencing the same problems?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 13:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Unexpected-behaviour-when-scheduling-a-flow-containing-other/m-p/854800#M1630</guid>
      <dc:creator>FredrikHansson</dc:creator>
      <dc:date>2023-01-20T13:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected behaviour when scheduling a flow containing other flows</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Unexpected-behaviour-when-scheduling-a-flow-containing-other/m-p/854840#M1631</link>
      <description>&lt;P&gt;The problem has now been reproduced in another environment. So at least I'm not alone.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;A support track is opened:&amp;nbsp;&lt;STRONG&gt;7613725502&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 14:45:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Unexpected-behaviour-when-scheduling-a-flow-containing-other/m-p/854840#M1631</guid>
      <dc:creator>FredrikHansson</dc:creator>
      <dc:date>2023-01-20T14:45:42Z</dc:date>
    </item>
  </channel>
</rss>

