connRetryEnable in SaaS Connectors

I have coded custom SaaS Connector but unable to figure out how to control aggregation retries on error. Currently if aggregation fails it tries 3 more times but I want to prevent it.
I know some OOTB connectors (EX: JDBC) provide this functionality thru connRetryEnable attribute.

Hi Ralph, I have a SaaS implemented here and just tried the connRetryEnable attribute without changes. Can be an alternative to perform a retry on code? For example, in my case I first read all accounts into an array, and then call the send method:

for(const account of accounts) {
   res.send(account);
}

I check for some errors before that, for example:

let endsOK = false;
while(!endsOK) {
  try {
      let accounts = awayt MyClient.getAccounts();
      endsOK = true;
  }
  catch (error) {
    logger.info("aggregation goes wrong");
  }
}

Sorry as I not following you…I am looking for a way to prevent aggregation retries on error.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.