Skip to content
Crow CI

Maintenance

Maintenance and cleanup configuration variables.

  • Name: CROW_MAINTENANCE_STALE_AGENT_CLEANUP_ENABLED
  • Description: Enable automatic stale agent cleanup.
  • Default: true

  • Name: CROW_MAINTENANCE_STALE_AGENT_DURATION
  • Description: Duration after which agents are considered stale (e.g., 24h for 1 day).
  • Default: 24h

  • Name: MAINTENANCE_KUBERNETES_CLEANUP_ENABLED
  • Description: Whether to enable Kubernetes resource cleanup.
  • Default: none (true when CROW_BACKEND=kubernetes)

  • Name: MAINTENANCE_KUBERNETES_CLEANUP_AGE
  • Description: The age threshold for Kubernetes resources to be cleaned up.
  • Default: 168h

  • Name: MAINTENANCE_KUBERNETES_CLEANUP_NAMESPACES
  • Description: Comma-separated list of namespaces to clean up.
  • Default: none (applies to current server namespace)

  • Name: CROW_MAINTENANCE_VACUUM_LOG_TABLE_ENABLED
  • Description: Whether to enable vacuuming of the log table.
  • Default: true

  • Name: CROW_MAINTENANCE_VACUUM_LOG_TABLE_SCHEDULE
  • Description: Cron schedule for vacuuming the log table.
  • Default: 0 5 * * *

Cleans up database rows referencing deleted forge users or repositories. Hard-deletes crons pointing at deleted repos, disables crons whose repo’s owner was deleted, and reports orphaned repos for admin review without auto-deleting them.

  • Name: CROW_MAINTENANCE_ORPHANED_DATA_CLEANUP_ENABLED
  • Description: Enable automatic cleanup of orphaned database rows.
  • Default: true

MAINTENANCE_ORPHANED_DATA_CLEANUP_SCHEDULE

Section titled “MAINTENANCE_ORPHANED_DATA_CLEANUP_SCHEDULE”
  • Name: CROW_MAINTENANCE_ORPHANED_DATA_CLEANUP_SCHEDULE
  • Description: Cron schedule for orphaned data cleanup.
  • Default: 0 5 * * *