Tech
Plan Retries Before They Run
A retry policy can look reasonable on its own and still be impossible inside the request that owns it.
Suppose one provider attempt may take 800 milliseconds. The call allows four attempts with increasing backoff, while the request has two seconds left. The individual numbers are valid, yet the composition cannot fit.
@workit/core/time-policy evaluates that shape before task execution:
import { planTimePolicy } from " @workit/core/time-policy " ;
const plan =...
Read the full discussion on Dev.to
This article was aggregated from Dev.to. Click to join the conversation.
View on Dev.to