Skip to content

ir schedule: a whenthen backend - #206

Merged
thorwhalen merged 1 commit into
masterfrom
schedule-via-whenthen
Dec 2, 2026
Merged

thorwhalen merged 1 commit into
masterfrom
schedule-via-whenthen

Conversation

@thorwhalen

Copy link
Copy Markdown
Member

Per thorwhalen/whenthen#12 and its handing-a-schedule procedure: a whenthen backend for ir schedule (first in BACKENDS, used only when python -m whenthen --help works). Installing it removes ir's own launchd agent or cron line first and restores it if the add fails; status reads the job; a vocabulary entry ships as package data. Without whenthen, or with --backend launchd|cron, behaviour is unchanged. Tests fake whenthen and the scheduler.

Note: a whenthen job has a 2h time limit, so a stalled ir maintain (see #205) is stopped rather than blocking later runs.

A whenthen backend (first in BACKENDS): installs one job, taking over from ir's own launchd agent or cron line (put back if the add fails); status reads the job and names a legacy scheduler; --asked-by/--quote are recorded with the job. launchd and cron stay as before without whenthen or with --backend.
@thorwhalen
thorwhalen merged commit ba2ace4 into master Dec 2, 2026
15 checks passed
@thorwhalen
thorwhalen deleted the schedule-via-whenthen branch December 2, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant