ccproxy.plugins.codex.tasks¶
ccproxy.plugins.codex.tasks
¶
Scheduled tasks for Codex plugin.
CodexDetectionRefreshTask
¶
CodexDetectionRefreshTask(
name,
interval_seconds,
detection_service,
enabled=True,
skip_initial_run=True,
**kwargs,
)
Bases: BaseScheduledTask
Task to periodically refresh Codex CLI detection headers.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Task name |
required |
interval_seconds
|
float
|
Interval between refreshes |
required |
detection_service
|
CodexDetectionService
|
The Codex detection service to refresh |
required |
enabled
|
bool
|
Whether the task is enabled |
True
|
skip_initial_run
|
bool
|
Whether to skip the initial run at startup |
True
|
**kwargs
|
Any
|
Additional arguments for BaseScheduledTask |
{}
|
Source code in ccproxy/plugins/codex/tasks.py
run
async
¶
Execute the detection refresh.
Returns:
| Type | Description |
|---|---|
bool
|
True if refresh was successful, False otherwise |
Source code in ccproxy/plugins/codex/tasks.py
setup
async
¶
Perform any setup required before task execution starts.