Message in "Pending" status on inbound thread

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Message in "Pending" status on inbound thread

  • Creator
    Topic
  • #47811
    Ariba Jones
    Participant

      I have an interface between two systems that is somewhat working and I can’t figure out what is wrong.  I have a kornshell script setup to ftp to the sending server and pick up a file.  That files gets put in a directory on Cloverleaf.  Five minutes later I have a second kornshell script that gets executed to look in the directory (the directory that the first script put the file in) for the file and then puts it on the receiving system.  Once the file is put on the receiving system, it is then deleted from the directory (by the second kornshell script) on Cloverleaf.  The message is put on the receiving system with no problem.  When I look at the status of the inbound thread, I see a file is “pending”.  There is only one file that is picked up (and only one file that is available for pickup), so, I am not sure why it is still showing a file “pending”.  I have had to immediately turn off the outbound thread for this interface so that the file isn’t sent again.  I wonder if the timing of the two scripts is what is causing this issue.  Both threads are fileset-Local.  Does anyone have any idea what may be the issue here?  Maybe I need to shorten the timeframe between the two scritps’ execution.  Thanks, Ariba

    Viewing 6 reply threads
    • Author
      Replies
      • #56770
        David Caragay
        Participant

          Hi Ariba,

          Can you send a copy of your netconfig file?  I’d like to see exactly what you are attempting to do?  We use FTP inbound and outbound on a few interfaces and I know you need to get the protocol settings and procs correct otherwise strange things can happen.

          You may also try putting the file there manually and checking the file attributes.  If you can recreate the problem on demand, let me know how you accomplish this.

        • #56771
          Ariba Jones
          Participant

            David Caragay wrote:

            Hi Ariba,

            Can you send a copy of your netconfig file?

          • #56772
            David Caragay
            Participant

              Ariba,

              You may want to try and implement the FTP protocol.  This is nice to use since it eliminates the need for your scripts and it uses the built in functionality of the engine, something I’m big on.  If I have a choice, I like to use the functionality we paid for before I write a custom solution.

            • #56773
              Ariba Jones
              Participant

                David,

                I am going to make the change for that this morning and test again.  I will let you know how it goes.  Thanks for the suggestion.  I had completely forgotten about the FTP option.

                Ariba

              • #56774
                Ariba Jones
                Participant

                  David,

                  I just thought about something.  When the FTP protocol is used, will it pick up every file in the directory that is specified?  There are many other files in the directory that the file will be picked up from.  There are also many files in the directory where the file will be put on the receiving system.  Also, will this protocol allow a backup copy of the file with the date on it to be kept on Cloverleaf?  Ariba

                • #56775
                  David Caragay
                  Participant

                    Ariba,

                    The ftp protocol setup function will process all files in the directory and then delete the files unless you add a tcl proc to modify the directory listing.  Using the directory parse tcl option allows you to specify a proc that will read the directory listing, remove unwanted filenames and pass this revised listing back to cloverleaf for processing.  If you would like to copy the file to a backup location, this can also be done in the dir parse or delete tcl proc.  There are a few varieties of the dir parse and delete procs floating around on clovertech or you can write your own.

                  • #56776
                    Ariba Jones
                    Participant

                      David,

                      It seems as if I should try the scripts since the FTP protocol deletes all files in the directory.  There are many other files in the directory where Cloverleaf would pick the file up from.  It seems as though the file would need to have its own directory on the sending system in order for me to use the FTP protocol.  The directory where the file would be put would also need to only contain this file, right?  There are other files in that directory also.  If I could use the FTP protocol and still be able to make a backup copy of the files that are received, then I would like to do that.

                      If not………..

                      I did successfully pick up the file and put the file on the receiving system.  The inbound thread just continues to show a file pending after the file has been placed on the receiving system.  I think the timing of the transactions may be the cause of this.  I changed the read interval, max messages and scan interval (original settings: 90,100,120) on the inbound thread to (5,1, 30).  I noticed that when I tested after this change that the pending message count grew quickly.  With the original setting the pending message count was 1.  When I changed the settings, the pending message count went to 4 in no time.  It seems as if the intervals have something to do with this. I am just not clear on what each is doing.  This may be part of the solution along with the timing of the execution of the inbound script and outbound script.

                  Viewing 6 reply threads
                  • The forum ‘Cloverleaf’ is closed to new topics and replies.