The one timer that runs the collector (0005-evidence-capture-viewsFR-006): how often it fires follows from the shortest cadence of the capture policy, in whole steps of the clock, and it is installed and removed with the scheduler code of the commons (systemd, launchd or Task Scheduler). What the timer runs, and where, is the caller's: it gives the argument vector and the folder.
import { timerEvery } from"./timer.ts";
// timerEvery(policy) is { kind: "minutes", every: 15 } for a cadence of 15 minutes
How often the one timer fires: the largest step of the clock (1, 2, 3, 4, 5, 6, 10, 12, 15, 20 or 30 minutes) that is not longer than the shortest cadence of the policy, so that nothing due waits for the next firing; every hour where the shortest cadence is an hour or more. The collector decides, on each firing, which assets are due.
How often the one timer fires: the largest step of the clock (1, 2, 3, 4, 5, 6, 10, 12, 15, 20 or 30 minutes) that is not longer than the shortest cadence of the policy, so that nothing due waits for the next firing; every hour where the shortest cadence is an hour or more. The collector decides, on each firing, which assets are due.