Skip to content

Commit

Permalink
Merge pull request #2312 from MitrahSoft/LDEV-3828_
Browse files Browse the repository at this point in the history
Reduced the async calls once per the provider if extensions provider call fails for LDEV-3828
  • Loading branch information
michaeloffner committed May 16, 2024
2 parents 24b3ffe + 79c5f8a commit 87f8a42
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/src/main/cfml/context/admin/ext.functions.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,13 @@
}
}
catch(e) {
// call it in background
getProviderInfoAsync(arguments.provider);
writeLog("Provider calls to #arguments.provider# failed with #e.message# #e.stacktrace#" , "error");
if(!structKeyExists(request, "providerRetryCount") || !structKeyExists(request.providerRetryCount, arguments.provider)) request.providerRetryCount[arguments.provider] = 0;
request.providerRetryCount[arguments.provider]++;
// call it in the background once per the provider
if(request.providerRetryCount[arguments.provider] <= 1) getProviderInfoAsync(arguments.provider);
}
if(isNull(http.status_code)){
Expand Down

0 comments on commit 87f8a42

Please sign in to comment.