ccproxy.plugins.claude_sdk.tasks¶
ccproxy.plugins.claude_sdk.tasks
¶
Scheduled tasks for Claude SDK plugin.
ClaudeSDKDetectionRefreshTask
¶
ClaudeSDKDetectionRefreshTask(
name,
interval_seconds,
detection_service,
enabled=True,
skip_initial_run=True,
**kwargs,
)
Bases: BaseScheduledTask
Task to periodically refresh Claude CLI detection.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
Task name |
required |
interval_seconds
|
float
|
How often to run the task |
required |
detection_service
|
ClaudeSDKDetectionService
|
Claude CLI detection service |
required |
enabled
|
bool
|
Whether the task is enabled |
True
|
skip_initial_run
|
bool
|
Whether to skip the first run |
True
|
**kwargs
|
Any
|
Additional task arguments |
{}
|
Source code in ccproxy/plugins/claude_sdk/tasks.py
run
async
¶
Execute the Claude CLI detection refresh.
Returns:
| Type | Description |
|---|---|
bool
|
True if successful, False otherwise |