Skip to content

pastor 0.2.0

Choose a tag to compare

@cacarico cacarico released this 25 Sep 00:50
· 1043 commits to main since this release
v0.2.0
9db7223

Added

  • Scheduled jobs: a job is a TOML file in ~/.config/pastor/jobs/, run on an
    every interval or a cron schedule against a connector (clock for now).
    Each new item becomes one task; items already seen never fire twice.
  • pastor job list|enable|disable|run to manage job files, and
    pastor tick [--dry-run] [--job] to run or preview a scheduler pass.
  • An events log: pastor serve appends task, job and machine events to
    ~/.local/state/pastor/events.jsonl (rotated by size), and
    pastor events [--follow] [--task t-N] [--json] reads it, even with the
    daemon down.
  • pastor setup systemd [--herdr] installs the pastor or herdr user unit,
    checks that lingering is on, and tightens config/state file permissions.
  • pastor task show t-N prints one task in full, and pastor task run --agent-arg plus a [defaults] agent_args key pass flags such as
    --model to the agent.
  • CI: make check and make test-machine run on every pull request and on
    main.

Changed

  • pastor flock add|remove|list|status is now pastor machine ...;
    flock.toml keeps its name.
  • Task and job commands move under pastor task run|list|attach and
    pastor job reload. The old top-level run, list, attach and reload
    stay as hidden, deprecated aliases for this release.
  • pastor task list (formerly pastor list) shows only live tasks by
    default; pass --all to include closed ones too.
  • pastor setup systemd gained --enable, --start, --now and --stop
    to choose the systemd action, plus --yes to skip the confirmation
    prompt for scripted and remote use.

Fixed

  • Tasks now reach done against herdr 0.9.1. herdr reports no
    completion_seq; pastor now uses state_change_seq past the prompt's
    reply, requires that it saw the agent working or blocked after the prompt,
    and confirms after the settle window. Before, finished agents stayed
    running for ever.
  • A job run whose task insert fails is reported as a failed run, is not
    counted as a connector failure, and keeps its cursor; runs of one job are
    serialised and queued in command order; an elapsed backoff makes the job
    due at once.
  • The store refuses a meta table that lost its schema version, creates any
    job tables missing from a current-version database, and reports a corrupt
    failure count against its own column instead of wrapping it.
  • The CLI tells a busy head from a missing one: a request that connected but
    timed out reports timeout and says the head may still finish it; only a
    refused or missing socket says pastor serve is not running.
  • The private ssh ControlPath directory is created before any ssh command
    that can start a master, including the daemonless CLI paths.