Codumentor logo Codumentor Enterprise

Task Runtime Plugin

The Task Runtime plugin runs scheduled agent runs — tasks created with the Task Tools, operator-declared tasks from the tasks: block, and every Goals worker. It has no agent-facing tools. It owns:

task_tools and goals both depend on it. Disabling task_tools removes only the scheduling tools; goal workers and declared tasks keep running as long as this plugin is loaded. A config whose plugins: list names task_tools or goals but not this plugin gets it added with its defaults (a log line says so).

Configuration

plugins:
  - module: codumentor.plugins.task_runtime
    class: TaskRuntimePlugin
    priority: 5
    args:
      enabled: true
      run_history_retention_days: 365
ParameterTypeDefaultDescription
enabledbooltrueEnable or disable the plugin. Disabled, nothing runs scheduled tasks or goal workers.
run_history_retention_daysint365How long to keep finished run history — and the per-run conversations, which are soft-deleted first — before a maintenance sweep purges them. 0 or negative keeps history forever.
retention_sweep_interval_secondsfloat86400How often the maintenance sweep runs (retention purge plus stale-run cleanup). A restart also sweeps immediately.
stale_run_threshold_secondsfloat3600A run that has been running with no progress longer than this is treated as stuck and marked failed.
parked_run_ttl_secondsfloat604800How long a run whose turn is waiting on an approval may wait. Past it, the maintenance sweep ends the run as failed (stale) and drops its token ledger. A waiting run is never treated as stuck by the threshold above. 0 disables.

These four maintenance settings are also accepted under task_tools' args:, where older configs have them; the loader applies them here and logs a warning asking you to move them.

Notes