Skip to content

Conversation

@mingjerli
Copy link
Owner

Summary

  • Add Prefect 3.x integration with Pipeline class
  • Add PrefectOrchestrator class with to_flow() and to_deployment() methods
  • Add Pipeline.to_prefect_flow() for generating Prefect flows with tasks
  • Add Pipeline.to_prefect_deployment() for creating scheduled deployments

Features

  • Automatic task generation from SQL queries with proper dependencies
  • Support for retries, timeouts, and tags
  • Concurrent execution of independent tasks using wait_for
  • Deployment support with cron schedules

Test plan

  • Added comprehensive test suite (17 tests) in tests/test_prefect_integration.py
  • Tested in enterprise-demo with real Prefect server deployment
  • Verified flow execution with all tasks completing successfully

Files Changed

  • src/clgraph/orchestrators/prefect.py - New PrefectOrchestrator class
  • src/clgraph/orchestrators/__init__.py - Export PrefectOrchestrator
  • src/clgraph/pipeline.py - Add to_prefect_flow() and to_prefect_deployment()
  • tests/test_prefect_integration.py - Comprehensive test suite

🤖 Generated with Claude Code

Add Prefect 3.x integration with Pipeline class:

- Add PrefectOrchestrator class with to_flow() and to_deployment() methods
- Add Pipeline.to_prefect_flow() for generating Prefect flows with tasks
- Add Pipeline.to_prefect_deployment() for creating scheduled deployments
- Add comprehensive test suite (17 tests) for Prefect integration

Features:
- Automatic task generation from SQL queries with proper dependencies
- Support for retries, timeouts, and tags
- Concurrent execution of independent tasks using wait_for
- Deployment support with cron schedules

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@mingjerli mingjerli merged commit cb36637 into main Jan 13, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants