Expand description
When a partially registered row next looks for its course unit attainment. Sisu creates those in a nightly batch, so a row polls once after it, on the morning slot, and again on the noon slot if the morning poll came too early. A row that first shows its assessment item attainment during the day waits for the next morning.
Constants§
- CATCH_
UP_ 🔒SLOT - Finnish wall-clock time of the catch-up poll for a row the morning poll missed.
- MORNING_
SLOT 🔒 - Finnish wall-clock time of the daily poll, after Sisu’s nightly course unit batch.
- SLOT_
SPREAD - How long after its slot a poll may land, so the rows of one slot do not reach Suotar at once.
Functions§
- next_
course_ unit_ polls - The next course unit poll of each row, spread over the
SLOT_SPREADafter its slot, in the order offirst_seen_at: when a poll first saw the row’s assessment item attainment, ornowfor a row whose poll may see it now. - next_
slots 🔒 - Read off the database’s time zone data, which knows when Finland changes to and from summer time. Neither slot falls in the hour a change skips or repeats.