tryMax(n) - How to not report first n-1 requests as failed

I am using tryMax to poll the status of a long running job. As the job is processing, the attempts made by tryMax are reported as failed requests even if the job completed within n attempts. Is there a way to not have those requests reported as failed?

No, tryMax is designed to trigger on failures.

What you probably want is an asLongAs loop around requests with permissive “optional” checks.

Thank you. asLongAs with optional checks is exactly what I needed. You can create a counter manually so the test doesn’t run potentially run forever.