gates / gates (push) Successful in 2m2s
Read-only review of every job on a timer and of everything that ends on a date, with measurements from the three test boxes. Nothing ends in the next 14 days. Register 236 -> 245 (R-1379..R-1387), pointer lines on twelve rows, D76-D79 in STATUS.md. Part C: felhom-agent's clone address holds no token now; the other clones wait for the operator's yes. R-1035's 4-week check moved to 2026-11-18 (operator read needed). Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
34 KiB
34 KiB
Clock list: in-guest controller (helper result, candidates only)
1. Night dump leg (databases and volumes) at W
dbDumpLegCT/cmd/controller/main.go:1336-1344runsRunDBDumpsCT/internal/backup/backup.go:564; owner: controller; started by the daily job "db-dump"CT/cmd/controller/main.go:1345. CUSTOMER.- Daily at W. W = household setting, else
DBDumpSchedule, elseDefaultWindow"02:30"CT/internal/backupwindow/backupwindow.go:12, decided inEffectiveWindowCT/internal/backupwindow/backupwindow.go:86-94. First leg. Zone: Europe/Budapest, hard-coded,getBudapestLocationCT/internal/scheduler/scheduler.go:17-27. - One database dump: 5 min limit
CT/internal/appbackup/dbdump.go:291. Whole leg limit: NOT FOUND (grepWithTimeout|WithDeadlinein backup.go gave onlyCT/internal/backup/backup.go:983andCT/internal/backup/backup.go:1268). Grows with number and size of databases and volumes. - Box off at W:
MissedCT/internal/nightchain/nightchain.go:197-218sees it from the ledger and the catch-up runs it (block 4). The hub judges a missing dump at its 05:00 deadlineAR/07-backup-architecture.md:579-584. withLegtakes the leg lockCT/cmd/controller/main.go:1321-1335;acquireRunningrefuses a second backupCT/internal/backup/backup.go:1105-1113; a job still running is skippedexecuteJobCT/internal/scheduler/scheduler.go:354-364. A running migration skips the leg and returns no errorCT/internal/backup/backup.go:565-568.- Slot from the wall clock, waited on a monotonic timer
runDailyJobCT/internal/scheduler/scheduler.go:300-352; fired over 60 min late = skippedDailyLateLimitCT/internal/scheduler/scheduler.go:67. See block 24 for the hour change. - Failure:
NotifyDBDumpFailedCT/cmd/controller/main.go:1339. A made-up miss: one timeline line, never mailedAR/07-backup-architecture.md:562-564. A miss not made up: banner after 26 hStaleAfterCT/internal/nightchain/banner.go:23. - TEST
TestCatchUp_OffAtWThenOn_OneCatchUpAfter15MinCT/internal/nightchain/nightchain_test.go:92; TESTTestDaily_LateFireIsSkippedCT/internal/scheduler/scheduler_test.go:87.
2. Second-drive copy leg at W+60 min
RunAllTier2CT/internal/backup/tier2.go:534copies each app's data to the second drive; owner: controller; started by the daily job "tier2-backup"CT/cmd/controller/main.go:1442. CUSTOMER.- Daily at W+60 min,
tier2OffsetMinCT/internal/backupwindow/backupwindow.go:17; no setting of its own. It does not wait for the dump leg: "NOTHING waits on the leg before it"AR/09-update-architecture.md:2751-2757. Zone as block 1. - One copy: 60 min,
tier2CopyTimeoutCT/internal/backup/tier2_copy_lifecycle.go:40, applied atCT/internal/backup/tier2.go:828. No limit for the whole leg found (same grep as block 1). Grows with app count and data size. - Catch-up as block 4 (the leg is in the ledger through
withLegCT/cmd/controller/main.go:1438-1441). The leg function always returns nilCT/cmd/controller/main.go:1438-1441, so the scheduler never sees a failure. - Leg lock
CT/cmd/controller/main.go:1321-1335. Skipped while a migration runsCT/internal/backup/tier2.go:538-541.acquireRunningin tier2.go: NOT FOUND (grepacquireRunning\(\)|TryLockin tier2.go, 0 hits). A stray copy container is retried every minutetier2RetryEveryCT/internal/backup/tier2_copy_lifecycle.go:172. - As block 1: wall-clock slot, monotonic wait, 60 min late limit
CT/internal/scheduler/scheduler.go:67. - Who is told of a failed copy: NOT FOUND in the wiring (grep
Notify[A-Za-z]+\(in main.go lines 1300-1460 shows only the dump and the off-site notices,CT/cmd/controller/main.go:1339andCT/cmd/controller/main.go:1446-1452). Candidate, the answer may sit inside tier2.go. - SOURCE
CT/internal/backup/tier2.go:534; catch-up part TESTTestCatchUp_PowerCutMidChain_FinishesTheRestCT/internal/nightchain/nightchain_test.go:145.
3. Off-site push leg at W+105 min (with clean-up of old snapshots)
RunOffboxBackupCT/internal/backup/offbox.go:1018pushes dumps to the remote store, then runs retention; owner: controller; started by the daily job "offbox-backup"CT/cmd/controller/main.go:1641-1643. CUSTOMER.- Daily at W+105 min,
offboxOffsetMinCT/internal/backupwindow/backupwindow.go:18. Retention keeps 7 daily,keepDailyCT/internal/backup/offbox_window.go:47. Zone as block 1. - Per app 2 h,
offboxBackupTimeoutCT/internal/backup/offbox.go:39, applied atCT/internal/backup/offbox.go:1564; SSH connect 10 sCT/internal/backup/offbox.go:37. Grows with data changed and line speed. One real night: 3 min 28 sAR/09-update-architecture.md:2751-2757. - Catch-up as block 4. No escrowed key, orphaned store or migration: skipped with an INFO log line and nil
CT/internal/backup/offbox.go:1040-1053. - Another backup running: "skipped — another backup is running", returns nil, "the next scheduled run retries"
CT/internal/backup/offbox.go:1054-1057. So a long second-drive leg can cost the night's off-site push (candidate). - As block 1. The clean-up window has a one-hour clock tolerance
offsiteGuardSkewCT/internal/backup/offbox_window.go:42. - Failure:
NotifyOffboxBackupFailedwith a cleaned messageCT/cmd/controller/main.go:1446-1452. The hub's daily deadline is the independent signalCT/cmd/controller/main.go:1524-1528. - SOURCE
CT/internal/backup/offbox.go:1040-1057; DOCAR/07-backup-architecture.md:455-457.
4. Missed-night catch-up and resume watch
CatchUp.EvaluateCT/internal/nightchain/nightchain.go:281-299runs the backup legs a box missed; owner: controller; started at controller startCT/cmd/controller/main.go:1676and by the resume watchCT/cmd/controller/main.go:1677. CUSTOMER.- 15 min after the trigger,
DefaultDelayCT/internal/nightchain/nightchain.go:62; a leg due within 30 min is left alone,leaveToNormalCT/internal/nightchain/nightchain.go:64. Values decided by CCAR/07-backup-architecture.md:574-577. No setting. - As long as the legs it runs. It waits up to 2 h for a whole-guest backup,
quiesceWaitMaxCT/internal/nightchain/nightchain.go:66, then drops with a WARNCT/internal/nightchain/nightchain.go:319. - If the catch-up itself does not run: banner after 26 h (block 5) and the hub's longer lines, 48 h without a dump
AR/07-backup-architecture.md:579-584. Two missed nights give one catch-up, not two. - One at a time: pending/running guard
CT/internal/nightchain/nightchain.go:288-292; leg lockCT/cmd/controller/main.go:1321-1335. It never runs the update legCT/cmd/controller/main.go:1660-1664. ResumeWatchcompares wall clock and monotonic clock each minute; a gap over 5 min triggers,d > gapCT/internal/nightchain/nightchain.go:375, gap set atCT/cmd/controller/main.go:1681. A forward clock correction over 5 min looks the same as a resume (candidate). "not measured live"AR/07-backup-architecture.md:551-559.- Household: one timeline line, never mailed
AR/07-backup-architecture.md:562-564, event sent atCT/internal/nightchain/nightchain.go:357-359. Dropped catch-up: log line onlyCT/internal/nightchain/nightchain.go:319. - TEST
TestCatchUp_TwoMissedNights_OneCT/internal/nightchain/nightchain_test.go:126; TESTTestResumeWatch_SeesASuspendCT/internal/nightchain/nightchain_test.go:217; TESTTestR871_CatchUpWiringCT/cmd/controller/r871_catchup_wiring_test.go:16.
5. Missed-backup banner (26 hours)
ComputeBannerCT/internal/nightchain/banner.go:56-88shows the household a banner when no night backup ran; owner: controller; computed when the page is drawn (no timer of its own). CUSTOMER.- Shown when the last backup is older than 26 h,
StaleAfterCT/internal/nightchain/banner.go:23. After 5 missed days it suggests another hour,suggestMinDaysCT/internal/nightchain/banner.go:26,SuggestCT/internal/nightchain/banner.go:95-113. - Instant; reads the ledger only
CT/internal/nightchain/banner.go:56-88. - Nobody opens the page: nobody sees it. The hub's deadline check is the other channel
AR/07-backup-architecture.md:579-584. - Not a job; no lock needed. Dismissed, it comes back after a new miss, design at
AR/07-backup-architecture.md:566-572. - Age is wall-clock arithmetic
CT/internal/nightchain/banner.go:56-88; a clock set back hides the banner for as long as the step (candidate). A test for a clock set back: NOT FOUND (grep^func Test.*(Back|Clock)in banner_test.go gave only the dismiss test). - The household only, on the page; no mail
AR/07-backup-architecture.md:566-572. - TEST
TestBanner_ShownWithReasonAndSuggestionCT/internal/nightchain/banner_test.go:29; TESTTestBanner_DismissedThenBackAfterANewMissCT/internal/nightchain/banner_test.go:59.
6. Whole-guest backup driver (stop apps, ask the host agent, start apps)
Loop.RunCT/internal/quiesce/quiesce.go:191-206stops the apps and asks the agent for the whole-guest backup; owner: controller drives, agent does the backup; started bystartQuiesceLoopCT/cmd/controller/main.go:4008. CUSTOMER.- Polls every 5 min
CT/internal/quiesce/quiesce.go:149-151; runs once per 24 h cadenceCT/internal/quiesce/quiesce.go:161-163, only inside W+2h to W+6h,gateOpenOffsetMinCT/internal/quiesce/quiesce.go:760,gateSpanMinCT/internal/quiesce/quiesce.go:761. ZonebudapestLocationCT/internal/quiesce/quiesce.go:747-757. - Apps stay down at most 30 min,
MaxQuiescedefaultCT/cmd/controller/main.go:3990, settingmax_quiesce_durationCT/internal/config/config.go:132. Manual run limit = that + 5 minCT/internal/quiesce/quiesce.go:430. Grows with guest disk size. - Outside the window it still runs when the last one is older than cadence + 24 h (the 48 h valve)
CT/internal/quiesce/quiesce.go:801-818. Apps left stopped by a crash are started byRecoverCT/internal/quiesce/quiesce.go:177-188, called atCT/cmd/controller/main.go:4007. - Single-flight
TryLockCT/internal/quiesce/quiesce.go:213-216; waits for a catch-upCT/internal/quiesce/quiesce.go:250-253; waits for the update legCT/internal/quiesce/quiesce.go:271-274, never past W+5h30legStepGraceMinCT/internal/quiesce/quiesce.go:935. - Gate is minute-of-day arithmetic on the wall clock
CT/internal/quiesce/quiesce.go:801-818; the poll is a monotonic tickerCT/internal/quiesce/quiesce.go:191-206. Hour-change night: NOT FOUND a test (grepDST|Budapest|SpringForward|Daylightin^func Testlines, 0 hits). - First failure notifies once
noteTierFailureCT/internal/quiesce/quiesce.go:283-298; retry back-off 15 min to 4 hCT/internal/quiesce/breaker.go:47,CT/internal/quiesce/breaker.go:54; busy agent: retry 15 min, alarm after 3 hCT/internal/quiesce/contention.go:53,CT/internal/quiesce/contention.go:64. - TEST
TestScheduledRunAllowedCT/internal/quiesce/quiesce_window_test.go:23; TESTTestRunOnce_ValveRunsOutsideWindowCT/internal/quiesce/quiesce_window_test.go:94; TESTTestBreaker_BackoffScheduleCT/internal/quiesce/breaker_test.go:218.
7. Automatic app-update leg (after the off-site push)
RunUpdateLegCT/internal/stacks/unattended.go:230presses one update step per app; owner: controller; started bychainUpdateLegwhen the off-site half ends, on every pathCT/cmd/controller/main.go:1641-1643. CUSTOMER.- Each night after the off-site leg; a box with no off-site tier runs it at W+105 min
AR/07-backup-architecture.md:459-465. One step per app per night, switch default ONAR/09-update-architecture.md:2806-2817. - No new step at or after W+5h:
LegDeadlineCT/internal/stacks/unattended.go:212-216,UpdateLegStopOffsetMinCT/internal/backupwindow/backupwindow.go:27; check atCT/internal/stacks/unattended.go:374-375. Grows with the number of apps that have an update. - Missed night: no catch-up by design
CT/cmd/controller/main.go:1660-1664; the rest "waits for the next night"CT/internal/stacks/unattended.go:374-375. Controller restarted mid-leg: the rest of the night is lost (R-686)AR/09-update-architecture.md:2815-2817. - A passing refusal (busy, updating) is retried once after 2 min,
RetryWaitCT/internal/stacks/unattended.go:167-171, rule atAR/09-update-architecture.md:2882-2883. The whole-guest gate waits for the legCT/internal/quiesce/quiesce.go:271-274. - Deadline is a wall-clock time in
time.Localwhen no location is givenCT/internal/stacks/unattended.go:212-216, while the scheduler uses Europe/BudapestCT/internal/scheduler/scheduler.go:17-27(candidate: two sources of zone). A late daily fire over 60 min is skipped, so no noon updatesAR/07-backup-architecture.md:551-559. - NOT FOUND in this read for who is told when the leg does not run (grep
update-leggave the log lineCT/internal/stacks/unattended.go:374-375only). - TEST
TestChainUpdateLeg_EveryPathCT/cmd/controller/update_leg_wiring_test.go:19; TESTTestLegDeadlineAndGateShareW5hCT/internal/quiesce/d20_update_leg_test.go:78.
8. Off-site integrity check at 06:00
- Daily job "offsite-integrity"
CT/cmd/controller/main.go:1724checks the remote store's data; owner: controller. CUSTOMER. - Fires daily at 06:00 (fixed, no setting for the hour) but works only when due: last good check older than 7 days,
defaultIntegrityMaxAgeDaysCT/internal/backup/offbox_integrity.go:81,IntegrityDueCT/internal/backup/offbox_integrity.go:221. Zone as block 1. - Limit 30 min,
integrityCheckTimeoutCT/internal/backup/offbox_integrity.go:63; a notice when slower than 5 minCT/internal/backup/offbox_integrity.go:78. Grows with store size and line speed. - Box off at 06:00: caught up at the next 06:00 by due-ness
CT/internal/backup/offbox_integrity.go:212-220; also run after a catch-upCT/cmd/controller/main.go:1665-1668. - Skipped when "a backup or restore is already running"
CT/internal/backup/offbox_integrity.go:298; then it waits for the next 06:00 (source commentCT/cmd/controller/main.go:1710-1723). - Due-ness compares wall-clock stamps
CT/internal/backup/offbox_integrity.go:231; a never-checked or unreadable stamp counts as dueCT/internal/backup/offbox_integrity.go:223-229. Slot behaviour as block 24. - NOT FOUND in this read (the job body
CT/cmd/controller/main.go:1724-1729was read; the notify path inside offbox_integrity.go was not). - SOURCE
CT/internal/backup/offbox_integrity.go:212-232; TESTTestR1189d_TheChecksRunAfterTheCatchUpLegsCT/internal/nightchain/r1189d_test.go:13.
9. Off-site proof restore at 05:30
- Daily job "offsite-proof"
CT/cmd/controller/main.go:1746restores one due snapshot to prove it opens,ProveOffboxUnitCT/internal/backup/offbox_proof.go:140; owner: controller. CUSTOMER. - Daily at 05:30, fixed, no setting
CT/cmd/controller/main.go:1746. One app per night in rotation (commentCT/internal/backup/offbox_proof.go:265). Zone as block 1. - Limit 10 min,
proofRestoreTimeoutCT/internal/backup/offbox_proof.go:80. Grows with the size of the one unit. - Box on for the backup legs but off at 05:30: "that day's proof is not made up"
CT/cmd/controller/main.go:1660-1664. Made up only together with a missed backup legCT/cmd/controller/main.go:1665-1668. - Skipped when "a backup or restore is already running"
CT/internal/backup/offbox_proof.go:149. With W = 02:30 the whole-guest gate is open from 04:30AR/09-update-architecture.md:2751-2757, so 05:30 can fall inside it (candidate). - As block 24.
- NOT FOUND in this read (grep
NotifynearCT/cmd/controller/main.go:1746-1749, 0 hits there). - SOURCE
CT/cmd/controller/main.go:1660-1664; TESTTestC5_TheWholeGuestBackupDoesNotWaitForTheChecksCT/internal/nightchain/r1189d_test.go:51.
10. Hub report every 15 minutes (plus push on change and hanging wait)
- Job "hub-report"
CT/cmd/controller/main.go:1835sends the box state to the hub; owner: controller. The hub's answer carries the version floor and configCT/cmd/controller/main.go:1233-1290. CUSTOMER and OPERATOR. - Every
PushInterval, default "15m"CT/internal/config/config.go:416, fallbackCT/cmd/controller/main.go:1831-1834. Also 5 s after startCT/cmd/controller/main.go:1932-1936, and on change with a 15 s floor,triggerMinIntervalCT/internal/report/trigger.go:30. No time zone. - HTTP limit 30 s
CT/internal/report/pusher.go:85; 3 tries, 5 s apartCT/internal/report/pusher.go:114-117. The wait connection holds up to 300 sCT/internal/report/waiter.go:35. - A failed push is not queued: "next cycle reconciles"
CT/internal/report/trigger.go:98. The hub notices silence (hub side, not read here). - A report still running is skipped
CT/internal/scheduler/scheduler.go:354-364. Bursts are merged after a 2 s quiet windowCT/internal/report/trigger.go:27. - Monotonic ticker
CT/internal/scheduler/scheduler.go:281-298; a wrong wall clock does not change the rhythm, only the stamps inside the report. - Waiter back-off 5 s to 5 min
CT/internal/report/waiter.go:36-37. Who is told on the box that pushes fail: NOT FOUND (onlyLastAttemptis storedCT/internal/report/pusher.go:109-111). - TEST
TestTrigger_BurstCoalescesTrailingEdgeCT/internal/report/trigger_test.go:114; TESTTestWaiter_FiresOnceOnGenChangeCT/internal/report/waiter_test.go:60.
11. Controller self-update: check, floor, nightly auto
CheckForUpdateCT/internal/selfupdate/updater.go:153looks for a newer controller image;MaybeAutoUpdateCT/internal/selfupdate/updater.go:612moves a box below the floor. Owner: controller, the agent swaps the image. CUSTOMER and OPERATOR.- Check every
CheckInterval, default "6h"CT/internal/config/config.go:417, and 25 s after startCT/cmd/controller/main.go:1981-1989. Floor: after every hub reportCT/cmd/controller/main.go:1249-1252. Auto: daily atAutoUpdateTime, default "04:30"CT/internal/config/config.go:419, only ifAutoUpdateCT/internal/config/config.go:278. - Registry call limit 15 s
CT/internal/selfupdate/updater.go:245. Limit of the swap itself: NOT FOUND in this read (greptime\.(Second|Minute|Hour)in updater.go gave one hit). - No catch-up needed for the floor: it is tried again on each report until done, but one attempt per floor value
CT/internal/selfupdate/updater.go:656-661. A failed attempt at a floor is not repeatedCT/internal/selfupdate/updater.go:604-606. updateRunningflagCT/internal/selfupdate/updater.go:520-524; refused while a backup runsCT/internal/selfupdate/updater.go:533-536or an app update is in flightCT/internal/selfupdate/updater.go:540-544. Default 04:30 equals gate-open time at W = 02:30 (candidate).- Check: monotonic ticker. Auto: daily slot as block 24. Default for
AutoUpdate: NOT FOUND in the defaults block (grepAutoUpdatein config.go: only the fieldCT/internal/config/config.go:278). - Auto-update refused: WARN log only
CT/cmd/controller/main.go:1879-1881. A version the floor cannot compare: WARN onceCT/internal/selfupdate/updater.go:639. - TEST
TestMaybeAutoUpdate_NoFlapCT/internal/selfupdate/floor_test.go:93; TESTTestMaybeAutoUpdate_BelowFloor_UpdatesToFloorCT/internal/selfupdate/floor_test.go:11.
12. Catalog sync (app templates from git)
Syncer.StartCT/internal/sync/sync.go:125pulls the app catalog; owner: controller; started at controller start. CUSTOMER.- Once at start
CT/internal/sync/sync.go:140-143, then everySyncInterval, default "15m"CT/internal/config/config.go:399; a bad value falls back to 15 minCT/internal/sync/sync.go:131-135. No time zone. - Time limit for one sync: NOT FOUND in the lines read (
CT/internal/sync/sync.go:124-188;doSyncbody not read). - Missed sync: the next tick does it. Empty repo address: sync is off with one WARN
CT/internal/sync/sync.go:126-129. Who notices a long failure: NOT FOUND. - Manual sync is refused while one runs or within 30 s of the last
CT/internal/sync/sync.go:175-185. The periodic tick callsdoSyncdirectly without that checkCT/internal/sync/sync.go:153-155(candidate: readdoSyncbefore judging). - Monotonic ticker
CT/internal/sync/sync.go:146; own ticker, not the shared scheduler, so it has no "still running" skip fromCT/internal/scheduler/scheduler.go:354-364. - Log line per sync only
CT/internal/sync/sync.go:155. - SOURCE
CT/internal/sync/sync.go:124-159.
13. System health check and base-stack self-heal
- Job "system-health"
CT/cmd/controller/main.go:981-1006checks disk, memory and base services, and puts the base stack back; owner: controller. CUSTOMER. - Every
SystemHealthInterval, default "5m"CT/internal/config/config.go:409, fallbackCT/cmd/controller/main.go:977-980; env overrideCT/internal/config/config.go:453. First run one interval after startCT/internal/scheduler/scheduler.go:281-298. - Time limit: NOT FOUND in the job body
CT/cmd/controller/main.go:981-1006. - No catch-up; next tick. A controller that is down checks nothing; the hub's missing reports are the outside sign (block 10).
- Skipped while the previous run is still going
CT/internal/scheduler/scheduler.go:354-364. - Monotonic ticker; not sensitive to wall clock.
NotifyHealthChangeon a change of stateCT/cmd/controller/main.go:1004.- SOURCE
CT/cmd/controller/main.go:981-1006.
14. Dead-app scan every 30 seconds
- Job "deadapp-check"
CT/cmd/controller/main.go:1086-1092finds apps that should run and do not; owner: controller. CUSTOMER. - Every 30 s; silent for 90 s after start, about 15 min after a crash boot
CT/cmd/controller/main.go:1087-1088. - Time limit: NOT FOUND (job body
CT/cmd/controller/main.go:1086-1143has no context limit). Grows with app count. - Next tick; no catch-up needed.
- Skipped if still running
CT/internal/scheduler/scheduler.go:354-364. It reads the whole-guest loop state so a planned stop is not an alarmCT/cmd/controller/main.go:1090. - Boot grace uses
time.Now()CT/cmd/controller/main.go:1087; a clock stepped back after start would lengthen the silence (candidate, no test found). - Alert on the page via
SetDeadAppAlertsCT/cmd/controller/main.go:1091. - SOURCE
CT/cmd/controller/main.go:1086-1092.
15. Disk-fill watch
fillWatcher.Checkwatches how full the drives are; owner: controller; three startersCT/cmd/controller/main.go:1804-1805. CUSTOMER.- Every 10 min,
fillWatchIntervalCT/cmd/controller/main.go:2690; daily at 03:30CT/cmd/controller/main.go:1804; once 90 s after start,fillWatchStartupDelayCT/cmd/controller/main.go:2685. Cadence stated atCT/cmd/controller/main.go:1772. - Time limit: NOT FOUND (the callbacks ignore the context
CT/cmd/controller/main.go:1804-1805). - Next 10-minute tick.
- The 03:30 slot and the interval job are two jobs with two names
CT/cmd/controller/main.go:1804-1805; a lock between them: NOT FOUND in the wiring (the fillwatch package was not read). - Interval is monotonic; the 03:30 slot as block 24.
- NOT FOUND in this read (fillwatch package not read).
- TEST
TestFillWatchRunsOnAnIntervalCT/cmd/controller/r363_fillwatch_interval_test.go:17.
16. Drive health check, hourly
- Job "disk-health-check"
CT/cmd/controller/main.go:2226asks the agent for drive health; owner: controller reads, agent measures. CUSTOMER. - Every 1 h; reason for hourly, not 6 h:
CT/cmd/controller/main.go:2219-2224. Only when the agent channel is configuredCT/cmd/controller/main.go:2225. - One fetch measured about 0.8 s
CT/cmd/controller/main.go:2219-2224. Limit: NOT FOUND. - Next hour; first run one hour after start
CT/internal/scheduler/scheduler.go:281-298. - Skipped if still running
CT/internal/scheduler/scheduler.go:354-364. - Monotonic ticker.
- NOT FOUND in this read (
RunDiskHealthCheckbody not read). - SOURCE
CT/cmd/controller/main.go:2219-2226.
17. Agent channel health, every 60 seconds
- Job "agent-channel-health"
CT/cmd/controller/main.go:2289probes the controller-to-agent channel; owner: controller. OPERATOR. - Every 60 s. A passing fault needs 2 misses in a row,
debounceThresholdCT/internal/channelhealth/checker.go:29. - Probe limit 15 s,
probeTimeoutCT/internal/channelhealth/checker.go:32. - Next minute.
- Skipped if still running
CT/internal/scheduler/scheduler.go:354-364. An alert marker file survives a restartCT/cmd/controller/main.go:2288. - Monotonic ticker.
- Sink = notifier and page alert
CT/cmd/controller/main.go:2286. - TEST
TestDebounce_TransientBlipSuppressedCT/internal/channelhealth/checker_test.go:119.
18. Held-app report to the hub
Reporter.TickCT/internal/holdreport/holdreport.go:89tells the hub which apps are held; owner: controller; job "hold-report"CT/cmd/controller/main.go:1081-1084. OPERATOR.- Looks every minute; each hold is sent again once a day,
ResendEveryCT/internal/holdreport/holdreport.go:36, and after each startCT/cmd/controller/main.go:1071-1073. - Instant; reads the hold store.
- Next minute.
- Skipped if still running
CT/internal/scheduler/scheduler.go:354-364. Tickgetstime.Now()CT/cmd/controller/main.go:1082; the daily resend is wall-clock arithmetic (candidate: a clock set back delays the resend).- The hub, by event
CT/cmd/controller/main.go:1074. - TEST
TestD64_TheHoldReporterTellsTheHubAfterTheClearCT/cmd/controller/holdclear_test.go:333.
19. Abandoned off-site store sweep at 05:10
- Daily job "offsite-abandon-sweep"
CT/cmd/controller/main.go:1693runsAbandonSweepCT/internal/backup/offbox_abandon.go:214; owner: controller. CUSTOMER. - Daily at 05:10, fixed. The due date is counted in UTC days
CT/internal/backup/offbox_abandon.go:366, the slot in Europe/BudapestCT/internal/scheduler/scheduler.go:17-27. - NOT FOUND (body of
AbandonSweepnot read). - Box off at 05:10: next day; no catch-up (it is not a ledger leg, see
CT/cmd/controller/main.go:1660-1664). - NOT FOUND (grep
acquireRunning\(\)|TryLockin offbox_abandon.go, 0 hits). - As block 24.
- NOT FOUND in this read.
- SOURCE
CT/cmd/controller/main.go:1693.
20. Restore-copy sweep and conversion-copy release
SweepUnusedRestoreCopiesCT/internal/backup/restore_copy_sweep.go:36deletes old kept copies; job "restore-copy-sweep"CT/cmd/controller/main.go:1414; job "conversion-copy-release"CT/cmd/controller/main.go:1407. CUSTOMER.- Sweep every 6 h; release every 1 h. Age line: the wiring comment says 14 days
CT/cmd/controller/main.go:1412, the constant says 30 days,restoreCopyUnusedAgeCT/internal/backup/restore_copy_sweep.go:29(candidate: comment and constant differ). - NOT FOUND.
- Next tick; first run 6 h after start
CT/internal/scheduler/scheduler.go:281-298, so a box on for under 6 h a day never sweeps (candidate). - Skipped if still running
CT/internal/scheduler/scheduler.go:354-364. - Age is wall-clock arithmetic on
nowCT/internal/backup/restore_copy_sweep.go:36. - NOT FOUND.
- SOURCE
CT/internal/backup/restore_copy_sweep.go:29.
21. Session clean-up (dashboard sign-ins)
cleanupSessionsCT/internal/web/auth.go:369removes expired sign-in sessions; owner: controller web server. CUSTOMER.- Every 15 min
CT/internal/web/auth.go:370. A session lives 7 days,sessionMaxAgeCT/internal/web/auth.go:30. Family sessions 30 days,SessionLifeCT/internal/family/family.go:42; share cookie 30 daysCT/internal/web/share.go:31. - Instant; grows with session count.
- Not run: expired sessions stay in the file. Whether an expired session is refused at use: NOT FOUND in the lines read (
CT/internal/web/auth.go:355-395). sessionsMulockCT/internal/web/auth.go:377.- Expiry compares the wall clock,
now.After(sess.expiresAt)CT/internal/web/auth.go:381; a clock set forward signs everyone out, set back keeps sessions longer (candidate). - Log line only
CT/internal/web/auth.go:392. - SOURCE
CT/internal/web/auth.go:369-393.
22. Upload and CPU watch, torrent limit rule, line-test hold
startUpwatchCT/cmd/controller/upwatch_wiring.go:136runs the minute watcher and a 15-minute rule that holds the torrent app for the line test; owner: controller. CUSTOMER.- Watcher every 1 min
CT/cmd/controller/upwatch_wiring.go:139; rule every 15 minCT/cmd/controller/upwatch_wiring.go:141. Baseline: 7 days of data, cached 24 hCT/cmd/controller/upwatch_wiring.go:124-127. - Hold call limit 30 s,
holdTimeoutCT/internal/upwatch/linehold.go:79; drain wait at most 90 sCT/internal/upwatch/linehold.go:216. - A limit left at the test value by a stopped controller is put back at start,
RecoverHoldCT/cmd/controller/upwatch_wiring.go:137. - Own tickers; no scheduler skip. Lock between the two loops: NOT FOUND in the lines read.
- Monotonic tickers
CT/internal/upwatch/watch.go:151. - NOT FOUND in this read (
emitCT/internal/upwatch/watch.go:382not followed). - SOURCE
CT/cmd/controller/upwatch_wiring.go:134-152.
23. Old image clean-up after start
RunImageRetentionOnceUntilDoneCT/internal/stacks/image_retention.go:399deletes app images no app uses; owner: controller; started about 3 min after startCT/cmd/controller/main.go:2048-2069. CUSTOMER.- Once per start, retried every 2 min up to 30 times
CT/cmd/controller/main.go:2056. Also after an update or a remove (test names below). - Up to about 60 min of retries (30 x 2 min)
CT/cmd/controller/main.go:2056. - A box that never restarts and never updates runs no sweep (candidate).
- No pass while an update runs: TEST
TestImageRetention_NoPassWhileAnUpdateRunsCT/internal/stacks/image_retention_test.go:238. - Monotonic waits.
- Log only; an unreadable keep set deletes nothing
CT/internal/stacks/image_retention.go:221. - TEST
TestImageRetention_KeepsRunningAndPreviousDeletesOlderCT/internal/stacks/image_retention_test.go:111.
24. The clock itself: daily slots and interval jobs (merged: scheduler rules for all jobs above)
DailyCT/internal/scheduler/scheduler.go:131-157andEveryCT/internal/scheduler/scheduler.go:105-127carry every named job; owner: controller. CUSTOMER.- Daily slots are HH:MM in Europe/Budapest, hard-coded; if the zone data cannot load it silently uses UTC
CT/internal/scheduler/scheduler.go:17-27. Interval jobs do not run at start: first run after one intervalCT/internal/scheduler/scheduler.go:281-298. - No time limit of its own; shutdown waits 30 s
CT/internal/scheduler/scheduler.go:264. A panic in a job is caughtCT/internal/scheduler/scheduler.go:438-447. - A daily job has no catch-up in the scheduler; a fire over 60 min late is skipped
CT/internal/scheduler/scheduler.go:344-347. Only the three backup legs are made up (block 4). - One run per job at a time: "still running" skip
CT/internal/scheduler/scheduler.go:354-364. No rule between different jobs here. - Next slot by calendar day, not +24 h
CT/internal/scheduler/scheduler.go:499-519. Spring night: 02:30 does not exist; autumn night: 02:30 comes twice. Test for either: NOT FOUND (grepDST|Budapest|SpringForward|Daylightin^func Test, 0 hits). A clock set back while waiting: the timer still fires on monotonic time. - A skipped late fire is a log line only
CT/internal/scheduler/scheduler.go:344-347. - TEST
TestDaily_LateFireIsSkippedCT/internal/scheduler/scheduler_test.go:87; TESTTestUpdateDaily_GoroutineConsumesRescheduleCT/internal/scheduler/scheduler_test.go:62.
Tiny
- Status refresh every 10 s
CT/cmd/controller/main.go:950. - Stack scan every 2 min
CT/cmd/controller/main.go:953. - Docker socket watch every 15 s and socket users every 5 min
CT/cmd/controller/main.go:960-962. - Health probes every 10 s
CT/cmd/controller/main.go:971. - After-unclean-boot repair, every 30 s until done, own
TryLockCT/cmd/controller/main.go:1064-1065. - Debug ring spill every 30 s
CT/cmd/controller/main.go:1148-1150. - Off-site credential retry every 5 min
CT/cmd/controller/main.go:1375. - Backup cache refresh every 5 min
CT/cmd/controller/main.go:1398-1402. - Metrics sample every 60 s
CT/internal/metrics/collector.go:53. - Metrics prune daily 04:00, keeps 30 days
CT/cmd/controller/main.go:1754. - Asset sync daily at
SyncSchedule, default "05:00"CT/internal/config/config.go:425. - Geo-restriction verify every 6 h
CT/cmd/controller/main.go:2102. - Setup-gate loop every 20 s
CT/cmd/controller/main.go:2045. - Busy marker written every 15 s
CT/internal/busymark/busymark.go:29. - Startup report: 5 s after start
CT/cmd/controller/main.go:1932-1936. - Stray second-drive copy container retry every minute
CT/internal/backup/tier2_copy_lifecycle.go:172. - App wait after install: 10 min
CT/cmd/controller/main.go:2194. - Family sign-in form lives 1 h
CT/internal/web/family_gate.go:56. - Stale pointers inside the design text: the legs are cited at old main.go lines
AR/07-backup-architecture.md:455-457(candidate, hygiene).
Not found
- Log rotation: NOT FOUND in controller Go code. Grep
rotat|lumberjack|max-size|MaxSizeMBfound only the config fieldsCT/internal/config/config.go:291-292and their defaultsCT/internal/config/config.go:422-423; no reader of them. - Share-link expiry sweep: NOT FOUND. Grep
expire|expiry|ExpiresAtininternal/web/share*.gogave no sweep; only the 30-day cookieCT/internal/web/share.go:31. - A test for the hour-change nights or a named time zone: NOT FOUND (grep
DST|Budapest|SpringForward|Daylightover^func Testin cmd and internal, 0 hits). - Who is told when the second-drive copy, the proof, the integrity check, the fill watch or the drive health check fails: not read to the end; see line 7 of blocks 2, 8, 9, 15, 16.
- Not read at all:
CT/internal/bootrecon/bootrecon.go:147,CT/internal/bootstrap/waiting.go:95,CT/internal/offsiteapply/offsiteapply.go:137,CT/internal/web/operator_reboot_notice.go:78,CT/internal/web/handler_export_upload.go:204,CT/internal/web/media_events.go:97,CT/internal/notify/notifier.go:324.