-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92670b1
commit ce9abc3
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...ter/src/rules/airflow/snapshots/ruff_linter__rules__airflow__tests__AIR303_AIR303.py.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
source: crates/ruff_linter/src/rules/airflow/mod.rs | ||
snapshot_kind: text | ||
--- | ||
AIR303.py:7:5: AIR303 Use `max_active_tis_per_dag` instead of deprecated `task_concurrency` parameter | ||
| | ||
5 | task1 = PythonOperator( | ||
6 | task_id="task1", | ||
7 | task_concurrency=2, # This should trigger AIR303 | ||
| ^^^^^^^^^^^^^^^^^^ AIR303 | ||
8 | python_callable=lambda: None, | ||
9 | ) | ||
| | ||
|
||
AIR303.py:21:5: AIR303 Use `max_active_tis_per_dag` instead of deprecated `task_concurrency` parameter | ||
| | ||
19 | task3 = PythonOperator( | ||
20 | task_id="task3", | ||
21 | task_concurrency=5, # This should trigger AIR303 | ||
| ^^^^^^^^^^^^^^^^^^ AIR303 | ||
22 | python_callable=lambda: None, | ||
23 | ) | ||
| |