Expand description
The nightly hours when Finland is already on the next day but Sisu, which dates attainments by the UTC day, is not: 00:00–03:00 Finnish time in summer, 00:00–02:00 in winter. Suotar dates an attainment by its Finnish day, so one dated today is in the future for Sisu then, and Sisu refuses it. Importing waits the gap out.
Constants§
- SISU_
DAY_ 🔒GAP_ LEAD - The gap starts this long before Finnish midnight, so a batch claimed just before it reaches Sisu in time.
- SISU_
DAY_ 🔒GAP_ SPREAD - How long after the gap the imports it held back are spread over, so they do not all reach Suotar the moment it ends.
- SISU_
DAY_ 🔒GAP_ TAIL - The gap ends this long after UTC midnight, for clock differences between us, Suotar and Sisu.
Functions§
- current_
gap_ end - When the gap we are in ends, or
Noneoutside it. Read off the database’s clock and time zone data, which knows when Finland changes to and from summer time. - spread_
imports_ past_ gap - Moves every import due before
gap_endto a random moment in theSISU_DAY_GAP_SPREADafter it. A moved row is no longer due beforegap_end, so running this on every tick of the gap moves each row once. Returns how many rows moved.