Major Features Added:
- π Complete workflow orchestration with job dependency management
- ποΈ New hammerwork_workflows table and extended job schema
- π Full workflow API: enqueue, status, dependency resolution, cancellation
- β‘ Advanced dependency features with failure propagation and cycle detection
- π Completed MySQL encryption deserialization implementation
Database Enhancements:
- PostgreSQL: Native UUID arrays, JSONB dependencies, optimized indexes
- MySQL: JSON columns, proper constraints, feature parity with PostgreSQL
- Workflow validation with topological sorting for cycle detection
- Transactional workflow operations ensuring data consistency
API Extensions:
- JobGroup workflow builder with fluent API (.then(), .add_parallel_jobs())
- enqueue_workflow() - Atomic workflow insertion with validation
- get_workflow_status() - Retrieve workflow state and job progress
- resolve_job_dependencies() - Automatic dependency satisfaction
- get_ready_jobs() - Efficient ready-to-execute job queries
- fail_job_dependencies() - Intelligent failure cascade with policies
- cancel_workflow() - Clean workflow cancellation
Implementation Completeness:
- Replaced all todo\!() placeholders with full implementations
- Added comprehensive error handling and UUID conversion
- Helper methods for transactional job insertion
- Complete MySQL encryption deserialization matching PostgreSQL
Failure Policies:
- FailFast: Stop workflow on any job failure
- ContinueOnFailure: Continue independent jobs after failures
- Manual: Require intervention for failure handling
Testing:
- All 264 tests pass including 11 workflow-specific tests
- Full feature parity between PostgreSQL and MySQL
- Comprehensive dependency resolution and validation coverage
π€ Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>