One manifest, idempotent install
install.ps1 makes \MindAttic\Scheduler\ match jobs.json; -WhatIf shows the diff first, and a manifest with no jobs list is refused rather than read as "delete everything".
Every scheduled job on your PC, in one file.
MindAttic.Scheduler replaces a drawer full of hand-registered Windows Scheduled Tasks with one manifest, one idempotent installer, a run log that records every run, and an overnight arranger that keeps nightly jobs from colliding.
What it is
Each job is one entry in jobs.json: a name, a command and a schedule. Run install.ps1 and Windows Task Scheduler is made to match it exactly. Edit the file, rerun the installer, done. Anything the manifest stops listing is unregistered, and older copies a job replaces are cleaned up for you.
Every job runs headless through conhost.exe --headless with your ordinary interactive token: no console window popping up mid-game, no stolen focus, no stored password, no elevation. A run wrapper records each start, end and exit code in a SQL Server run log, and still hands Task Scheduler the command's own exit code.
Overnight jobs can ask for "daily": "auto" and let the arranger pick their slot from measured run times, so no two start at once and all of them finish by 08:00. A WPF dashboard shows every job, its schedule and its last run, and lets you edit and toggle them.
Who it's for
scheduler job add or cancel and gets a properly configured task in its own folder, without touching the Task Scheduler API.Features
install.ps1 makes \MindAttic\Scheduler\ match jobs.json; -WhatIf shows the diff first, and a manifest with no jobs list is refused rather than read as "delete everything".
Repeat every N minutes, run daily at a pinned time or on chosen days of the week, run at logon, or combine them.
"daily": "auto" jobs are slotted from measured durations so nothing overlaps and everything ends by 08:00; a nightly pass re-plans only when something is wrong.
Every run's start, end and exit code lands in SQL Server; if the database is down, rows spool to disk and flush on the next run.
Auto-slotted jobs take a named mutex, so a job that overruns makes the next one wait instead of piling on top of it.
A keepRunning job has no time limit, is restarted on failure, and is started by the install if it is not already running.
scheduler job add|cancel|list|status|enable|disable gives each app its own owner folder that the installer never touches.
A WPF desktop app lists every manifest and runtime job, edits schedules, toggles jobs, previews an optimized overnight plan and shows last night's planned slots against what actually ran.
dbsync mirrors local SQL Server databases to a remote copy using Change Tracking, hash comparison and exact handling of temporal tables, and never alters a schema.
How it works
Add an entry to jobs.json with a name, a command line and one or more schedule entries.
.\install.ps1 -WhatIf lists exactly what would be registered, changed or removed.
.\install.ps1 registers the task headless, wrapped in the run recorder.
Open the dashboard or run mindattic-scheduler runs --summary to see each job's usual duration and last result.
Quick start
Rerun it after every edit to jobs.json.
The full setup guide lives in the documentation.
> .\install.ps1 -WhatIf # show what would change
> .\install.ps1 # apply
> mindattic-scheduler runs --summaryPart of MindAttic
Scheduler is the one place every MindAttic scheduled job lives. The Launcher's nightly backup, the Orchestrator's daemon and other tools' recurring work are manifest entries here, and MindAttic.Psst creates its deferred and repeating texts as runtime jobs through scheduler job add.
Its own settings, like the run-log connection, follow the family convention under %APPDATA%\MindAttic.
Status
The manifest, installer, arranger, run log, runtime-job API, database sync engine and dashboard all work. The remaining work is making every job run a current executable from the R: app drive, retiring the old C: copy and the leftovers of decommissioned infrastructure, and keeping the manifest to exactly the jobs wanted.
Current milestone: Every local job runs from R: and nothing points at retired infrastructure.
Next step
Guides, reference and design notes are in the searchable MindAttic documentation. The source, issues and history are on GitHub.