8000 cron: per-job run metadata and container retention · Issue #118 · acidtib/jiji · GitHub
[go: up one dir, main page]

Skip to content

cron: per-job run metadata and container retention #118

Open

Description

@acidtib

Summary

Cron run metadata and run-container retention are fixed constants in crates/jiji-agent/src/scheduler.rs: completed run metadata is kept for 30 days, and the latest 100 runs per job are always kept even when older (METADATA_RETAIN_SECS, METADATA_RETAIN_LATEST); a finished run's container is kept for 24 hours so jiji service cron logs can still read its output (CONTAINER_RETAIN_SECS). None of these can be set per job.

Scope

  • Per-job settings on CronConfig for run metadata retention (age and/or count) and run-container retention, defaulting to today's values.
  • Carry them in the installed CronJobSpec so the agent's cleanup tick applies them per job.

Done when

crates/jiji-config/src/jiji.yml and the website's cron reference are updated in the same change.

Code: crates/jiji-config/src/schema.rs, crates/jiji-agent/src/cron.rs, crates/jiji-agent/src/cron_exec.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