Navigation

    SmartAPI Forum
    • Register
    • Login
    • Search
    • Categories
    • Popular
    • Groups
    • FAQs
    • API Docs

    HB_Interval Class Attribute in SmartWebSocket?

    Python SDK
    2
    2
    19
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V
      Vypy1 last edited by

      Is the HB_INTERVAL class attribute used to control the time period between which to receive the data of selected scripts?

      Since I also saw time.sleep(HB_INTERVAL) under run object.

      If so, how do I control this?

      def run(self):
              while True:
                  # More statements comes here
                  if self.HB_THREAD_FLAG:
                      break
                  print(datetime.datetime.now().__str__() + ' : Start task in the background')
                  
                  self.heartBeat()
      
                  time.sleep(self.HB_INTERVAL)
      
      A 1 Reply Last reply Reply Quote 0
      • A
        admin @Vypy1 last edited by

        HI @Vypy We have noted this We will update you on this.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post