MindAttic/MindAttic.Scheduler
Tool

MindAttic.Scheduler.

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.

Active C# .NET 10 PowerShell WPF SQL Server Windows Task Scheduler

What it is

Write the job down once. The Task Scheduler follows.

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

  • Developers with a pile of background jobsBackups, syncs, ticks and cleanups live in one reviewed, version-controlled file instead of scattered task registrations.
  • Apps that need timers at runtimeAn app calls scheduler job add or cancel and gets a properly configured task in its own folder, without touching the Task Scheduler API.
  • Anyone tired of surprise console windowsHeadless launches mean a scheduled job never flashes a window or grabs focus while you work or play.

Features

What you get

01

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".

02

Flexible schedules

Repeat every N minutes, run daily at a pinned time or on chosen days of the week, run at logon, or combine them.

03

The overnight arranger

"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.

04

A run log that never breaks a job

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.

05

Overnight lock

Auto-slotted jobs take a named mutex, so a job that overruns makes the next one wait instead of piling on top of it.

06

Daemons kept alive

A keepRunning job has no time limit, is restarted on failure, and is started by the install if it is not already running.

07

Runtime jobs for apps

scheduler job add|cancel|list|status|enable|disable gives each app its own owner folder that the installer never touches.

08

Jobs dashboard

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.

09

Database sync engine

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

How a job goes live

  1. Describe it

    Add an entry to jobs.json with a name, a command line and one or more schedule entries.

  2. Preview

    .\install.ps1 -WhatIf lists exactly what would be registered, changed or removed.

  3. Apply

    .\install.ps1 registers the task headless, wrapped in the run recorder.

  4. Watch it run

    Open the dashboard or run mindattic-scheduler runs --summary to see each job's usual duration and last result.

Quick start

Make the Task Scheduler match the manifest

Rerun it after every edit to jobs.json.

The full setup guide lives in the documentation.

powershell
> .\install.ps1 -WhatIf   # show what would change
> .\install.ps1           # apply
> mindattic-scheduler runs --summary

Part of MindAttic

One piece of a bigger workshop

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

Where it stands

Active

Core complete; pointing every job at its current home

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

Put your scheduled jobs under version control

Guides, reference and design notes are in the searchable MindAttic documentation. The source, issues and history are on GitHub.