Problem
Users can deploy tasks with incomplete or invalid configurations, leading to runtime failures:
- Missing datasource mappings
- Incompatible table schemas
- Circular dependencies
- Invalid cron expressions
Errors are only caught after deployment (TASK_ERROR), requiring rollback and reconfiguration.
Proposed Solution
Add cz-cli task validate <id> [--dry-run] command that checks:
- Connectivity: Source/target datasource reachability
- Schema Compatibility: Column type mapping, primary key existence
- Mapping Completeness: All required tables mapped, no orphan references
- Dependency Graph: No circular dependencies, valid execution order
- Schedule Validity: Cron expression syntax, timezone correctness
Output a structured risk report:
✅ Datasource connectivity: OK
⚠️ Type mismatch: resource.is_leaf (BIT -> BOOLEAN)
❌ Missing mapping: table 'auth_path' not configured
Expected Benefit
- Shift error detection left (before deployment).
- Improve first-time deployment success rate.
- Provide actionable feedback for configuration fixes.
Priority
🔴 P0
Problem
Users can deploy tasks with incomplete or invalid configurations, leading to runtime failures:
Errors are only caught after deployment (
TASK_ERROR), requiring rollback and reconfiguration.Proposed Solution
Add
cz-cli task validate <id> [--dry-run]command that checks:Output a structured risk report:
Expected Benefit
Priority
🔴 P0