<?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: EII subcriber rev function doesnt work in Edge Software Catalog</title>
    <link>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1344977#M2013</link>
    <description>&lt;P&gt;Hi Jesus, &lt;BR /&gt;&lt;BR /&gt;The documentation say that the function need only one parameter (&lt;A href="https://open-edge-insights.github.io/IEdgeInsights/common/libs/EIIMessageBus/python/docs/publish_subscribe_tutorial.html?highlight=recv)" target="_blank" rel="noopener"&gt;https://open-edge-insights.github.io/IEdgeInsights/common/libs/EIIMessageBus/python/docs/publish_subscribe_tutorial.html?highlight=recv)&lt;/A&gt; and I configured in this way:&lt;/P&gt;
&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;"&gt;
&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;msg&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;subscriber&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.recv( &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;timeout&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;3000&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Well, now I have a Timeout exception but I don't know how I can capture this exception &lt;SPAN style="color: #ffffff; font-family: 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #292929; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;eii.exc.Timeout Exception.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Dec 2021 16:58:33 GMT</pubDate>
    <dc:creator>Amagaquian</dc:creator>
    <dc:date>2021-12-17T16:58:33Z</dc:date>
    <item>
      <title>EII subcriber rev function doesnt work</title>
      <link>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1344329#M2011</link>
      <description>&lt;P&gt;In documentation it says that the recv function allows a wait parameter to be entered (apparently in milliseconds) but the recv ignores the parameter and hangs waiting for a new message.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 16:19:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1344329#M2011</guid>
      <dc:creator>Amagaquian</dc:creator>
      <dc:date>2021-12-15T16:19:08Z</dc:date>
    </item>
    <item>
      <title>Re:EII subcriber rev function doesnt work</title>
      <link>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1344785#M2012</link>
      <description>&lt;P&gt;Hi Amagaquian,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Looking at the message bus api documentation for Python, the recv() function does take two optional parameters (blocking, timeout). Could you please share which version of EII you are using? Are you using EII from Edge Software Hub or Open Edge Insights?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also, are you running one of our message bus samples to test or are you using your own application?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Dec 2021 00:22:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1344785#M2012</guid>
      <dc:creator>JesusE_Intel</dc:creator>
      <dc:date>2021-12-17T00:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: EII subcriber rev function doesnt work</title>
      <link>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1344977#M2013</link>
      <description>&lt;P&gt;Hi Jesus, &lt;BR /&gt;&lt;BR /&gt;The documentation say that the function need only one parameter (&lt;A href="https://open-edge-insights.github.io/IEdgeInsights/common/libs/EIIMessageBus/python/docs/publish_subscribe_tutorial.html?highlight=recv)" target="_blank" rel="noopener"&gt;https://open-edge-insights.github.io/IEdgeInsights/common/libs/EIIMessageBus/python/docs/publish_subscribe_tutorial.html?highlight=recv)&lt;/A&gt; and I configured in this way:&lt;/P&gt;
&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-family: 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;"&gt;
&lt;DIV&gt;&lt;SPAN style="color: #9cdcfe;"&gt;msg&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;subscriber&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.recv( &lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;timeout&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;3000&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Well, now I have a Timeout exception but I don't know how I can capture this exception &lt;SPAN style="color: #ffffff; font-family: 'Segoe UI', system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; font-size: 14px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #292929; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;"&gt;eii.exc.Timeout Exception.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 16:58:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1344977#M2013</guid>
      <dc:creator>Amagaquian</dc:creator>
      <dc:date>2021-12-17T16:58:33Z</dc:date>
    </item>
    <item>
      <title>Re:EII subcriber rev function doesnt work</title>
      <link>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1348815#M2014</link>
      <description>&lt;P&gt;Hi Amagaquian,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I apologize for the delay on our side, I have escalated this issue to my peers for additional input. I will let you know what I find out. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jesus&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Jan 2022 21:22:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1348815#M2014</guid>
      <dc:creator>JesusE_Intel</dc:creator>
      <dc:date>2022-01-05T21:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: EII subcriber rev function doesnt work</title>
      <link>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1385321#M2015</link>
      <description>&lt;P&gt;Hi Amagaquian,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to apologize for the extended delay from our side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just tested the &lt;A href="https://open-edge-insights.github.io/IEdgeInsights/common/libs/EIIMessageBus/python/docs/publishsubscribe-tutorial.html?highlight=publisher%20tutorial" target="_blank" rel="noopener noreferrer"&gt;Publish/Subscribe Tutorial&lt;/A&gt; in Open Edge Insights (OEI) 3.0 and was able to set the timeout amount and catch the exception by wrapping msg = subscriber.recv(timeout=10000) in a try-block as follows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="python"&gt;try:
    msg = subscriber.recv(timeout=10000)
except Exception:
    print("Publisher Disconnected…")
    continue&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By doing this, the subscriber will wait 10 seconds after the publisher disconnects. It will continue to print "Publisher Disconnected" every 10 seconds until the publisher is running again. One the publisher is running the subscriber will start receiving messages.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jesus&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 23:45:57 GMT</pubDate>
      <guid>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1385321#M2015</guid>
      <dc:creator>JesusE_Intel</dc:creator>
      <dc:date>2022-05-19T23:45:57Z</dc:date>
    </item>
    <item>
      <title>Re:EII subcriber rev function doesnt work</title>
      <link>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1387770#M2016</link>
      <description>&lt;P&gt;If you need any additional information, please submit a new question as this thread will no longer be monitored.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 May 2022 16:34:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Edge-Software-Catalog/EII-subcriber-rev-function-doesnt-work/m-p/1387770#M2016</guid>
      <dc:creator>JesusE_Intel</dc:creator>
      <dc:date>2022-05-26T16:34:02Z</dc:date>
    </item>
  </channel>
</rss>

