Repository navigation
ir schedule: a whenthen backend - #206
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Per thorwhalen/whenthen#12 and its handing-a-schedule procedure: a whenthen backend for
ir schedule(first in BACKENDS, used only whenpython -m whenthen --helpworks). 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.