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
Deploy this branch to CODE
Make a change to the CODE rule sheet
Hit 'refresh rules' in the CODE rule manager service
Check the CODE checker service. Do the rules update within 5 seconds to include your change?
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