Effect CommunityEC
Effect Community3y ago
47 replies
fubhy

Logging Retry Attempts with Schedule in TypeScript

I want to log sth. whenever I'm actually retrying my effect (with a schedule).

E.g. I got

Effect.retry(MyRetryPolicy.pipe(Schedule.whileInput(Predicate.isTagged("RetriableError"))))


But now if I add a .tapInput, it also logs if the schedule is hit with sth. other than RetriableError. Is there a way to tap & log (including the input) "after" the schedule?
Was this page helpful?