8000 cron: optional per-replica execution mode · Issue #116 · acidtib/jiji · GitHub
[go: up one dir, main page]

Skip to content

cron: optional per-replica execution mode #116

Open

Description

@acidtib

Summary

A cron job runs once per service, on one owner replica (cron_reconcile::select_cron_owner picks the lowest-ordinal Active/Healthy replica). There is no way to run a job on every replica. This is a feature addition: the website documents "A job runs once per service, not once per replica."

Scope

  • An optional per-replica execution mode on CronConfig.
  • Install the spec on every replica's agent in that mode (instead of only the owner), and keep the stale-spec sweep correct for it.
  • Make commands replica-aware (e.g. expose the replica ID / server name to the command's environment).

Done when

The cron reference on the website ("Current Limits") and crates/jiji-config/src/jiji.yml are updated in the same change.

Code: crates/jiji-config/src/schema.rs, crates/jiji-cli/src/cron_reconcile.rs, crates/jiji-agent/src/cron.rs, crates/jiji-agent/src/scheduler.rs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0