delay message

Clovertech Forums Cloverleaf delay message

  • Creator
    Topic
  • #118113
    Stewart
    Participant

      I need to create a delay before the translation that contains a DB table lookup executes in order to give the DB time to update.  Is there someway in TCL to create this delay as pre-proc?

    Viewing 1 reply thread
    • Author
      Replies
      • #118120
        Charlie Bursell
        Participant

          How do you know how long to delay?  What indication do you have that the DB is ready?

          Write messages to a file or sqlite DB (preferable).  Have another thread that reads the file/DB and checks if DB is ready.  if not leave as is if so send it through the engine.

        • #118173
          Rob Lindsey
          Participant

            I have done this in the past where the inbound thread did a select on the external Database table and if it returned with a good answer then it read from the local sqlite db table and processed each data message.  If not a good answer, the inbound UPOC did not read from the local sqlite db table.  The thread was setup as a UPOC on a schedule and ran every 2 minutes.

            Hope the above makes sense.

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.