homestar icon indicating copy to clipboard operation
homestar copied to clipboard

Add max recursion depth for provider workflow info requests

Open bgins opened this issue 2 years ago • 1 comments

Summary

Problem

Workflow info requests may be made recursively in search of a provider. Recursion is not currently limited.

Impact

Without limits on recursion, we may end up infinite recursion and potentially cycles as providers lose memory of who has already been asked.

Solution

Pass a counter when making recursive requests to set a max recursion depth.

bgins avatar Dec 13 '23 23:12 bgins

Another approach to limiting recursion by tracking which supposed providers have been visited. We could derive the count from the list, and it gives us more information to not make repeated requests to supposed providers.

bgins avatar Jan 12 '24 18:01 bgins