You've already forked agentic-coding-workflow
feat(jobs): wire mcp_tokens_purge runner into jobs.Module
- Config.MCPTokensPurge + scheduleEntry branch - app.go constructs runner with mcpTokensPurgeAdapter - Registered as 'mcp_tokens_purge' in RunnerFns map Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -127,6 +127,13 @@ type AcpEventsPurgeConfig struct {
|
||||
Retention time.Duration
|
||||
}
|
||||
|
||||
// MCPTokensPurgeConfig extends RunnerConfig with mcp_tokens retention.
|
||||
type MCPTokensPurgeConfig struct {
|
||||
Enabled bool
|
||||
Interval time.Duration
|
||||
Retention time.Duration
|
||||
}
|
||||
|
||||
// Config is the full jobs.Module configuration.
|
||||
type Config struct {
|
||||
Enabled bool
|
||||
@@ -138,4 +145,5 @@ type Config struct {
|
||||
JobReaper JobReaperConfig
|
||||
JobPurge JobPurgeConfig
|
||||
AcpEventsPurge AcpEventsPurgeConfig
|
||||
MCPTokensPurge MCPTokensPurgeConfig
|
||||
}
|
||||
|
||||
@@ -131,6 +131,8 @@ func scheduleEntry(cfg Config, name string) (schedEntry, bool) {
|
||||
return schedEntry{cfg.JobPurge.Interval, cfg.JobPurge.Enabled}, true
|
||||
case "acp_events_purge":
|
||||
return schedEntry{cfg.AcpEventsPurge.Interval, cfg.AcpEventsPurge.Enabled}, true
|
||||
case "mcp_tokens_purge":
|
||||
return schedEntry{cfg.MCPTokensPurge.Interval, cfg.MCPTokensPurge.Enabled}, true
|
||||
}
|
||||
return schedEntry{0, false}, false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user