SSH Connector retry loop
Hi there,
I am trying to build a component that will retry an SSH connection (to a SFTP) until it’s working, and more importantly, that will allow me to use the file system outport from the SSH Connector that succeeded outside of the loop.
The standard start of a SFTP workflow is like this:
The SSH Connector logs into the SFTP, lists the files, and if there are, proceeds to read them and then process the data.
Now I have been able to write a retry loop for the SSH Connection, which works well if all I want is a list of the contents of the SFTP:
I have to put the List Files/Folders in the Try/Catch because the SSH Connector doesn’t generate an output that I can replicate for the Fail input. That way, I add an error column that I add to the table containing the Path column, and the Fail Input reads a table with the same columns, and a different value in the error column, that is then used by the Variable Condition Loop End. Then the IF Switch stops the workflow if the Fail input is returned, or proceeds.
Now what I want to do is something like this:
Basically the same except that the working SSH Connector is then used to read the files outside of the component, in the rest of the workflow. This doesn’t work, the Variable Condition Loop End sends a warning but still works, whereas the Componnent Output does not because the file system connection is leaving the loop.
Is there any way to do this? Obviously the point here is to NOT retry another SSH Connection outside the loop, I am doing this because sometimes it will end in a timeout and just needs a retry, and doing it again outside the loop (without any retry) would defeat the purpose.
Thanks a lot :slight_smile: