guardian / typerighter

Even if you’re the right typer, couldn’t hurt to use Typerighter!
Apache License 2.0
276 stars 12 forks source link

Increase polling to every 5 seconds #302

Closed rhystmills closed 1 year ago

rhystmills commented 1 year ago

What does this change?

We currently ask S3 each minute whether or not the rules have been updated, so users of the checker service have to wait up to a minute to find out if their rule changes are live.

This PR makes the polling take place every 5 seconds rather than each minute. AWS cost explorer indicates that this will still be very cheap (less than 40p per month).

How to test

  1. Deploy this branch to CODE
  2. Make a change to the CODE rule sheet
  3. Hit 'refresh rules' in the CODE rule manager service
  4. Check the CODE checker service. Do the rules update within 5 seconds to include your change?