Автосоздание connection в Airflow

This commit is contained in:
2025-11-03 22:52:19 +03:00
parent d8f0a58563
commit bfc2696057
3 changed files with 36 additions and 41 deletions
+3 -1
View File
@@ -42,6 +42,8 @@ start_task → date_task → end_task
- Execute SQL queries
- Use PostgresOperator
**Connection Hint:** `docker-compose run --rm airflow-init` automatically provisions the `postgres_training` connection via `airflow connections add`, so no manual setup is required. You can verify it with `docker-compose exec airflow-webserver airflow connections get postgres_training`.
**Tasks:**
- `create_table`: Create simple table (users, products)
- `insert_data`: Insert sample records
@@ -242,4 +244,4 @@ CREATE TABLE enrollments (
- Uses conditional branching
- Implements proper error handling
- Creates reusable components
- Optimizes workflow performance
- Optimizes workflow performance