Effect CommunityEC
Effect Community2y ago
2 replies
Great Britton

Inconsistency in Default Jittered Schedule Values vs Docs Recommendation

why is the Schedule.jittered defaulted value min: 0.8, max: 1.2 when in the docs it says that "Research shows that Schedule.jittered(0.0, 1.0) is very suitable for retrying."

also, I believe that the Schedule.jitteredWith needs to be added to the docs to have the (0.0, 1.0) referenced above. Also I am assuming these numbers are basically the percentage of the input schedule to be so >

const testSchedule = Schedule.intersect(
  Schedule.jitteredWith({ min: 0.0, max: 1.0 })(Schedule.fixed("1 seconds")),
  Schedule.recurs(15)
);

Would retry 15 times with somewhere between 0 and 1 second each retry?
Was this page helpful?