it would be good to either add as a default cache policy, or provide as documentation a cache policy that will fail on any failed automations
class ZyteAPIPolicy(DummyPolicy):
def should_cache_response(self, response, request):
if not super().should_cache_response(response, request):
return False
if any('error' in action for action in response.raw_api_response['actions']):
return False
return True
it would be good to either add as a default cache policy, or provide as documentation a cache policy that will fail on any failed automations