-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove deprecated param in
DayOfWeekSensor
(#41393)
The `use_task_execution_day` param is deprecated
- Loading branch information
Showing
3 changed files
with
18 additions
and
26 deletions.
There are no files selected for viewing
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
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,18 @@ | ||
**Breaking Change** | ||
|
||
The ``use_task_execution_day`` parameter has been removed from the ``DayOfWeekSensor`` class. | ||
This parameter was previously deprecated in favor of ``use_task_logical_date``. | ||
|
||
If your code still uses ``use_task_execution_day``, you should update it to use ``use_task_logical_date`` | ||
instead to ensure compatibility with future Airflow versions. | ||
|
||
Example update: | ||
|
||
.. code-block:: python | ||
sensor = DayOfWeekSensor( | ||
task_id="example", | ||
week_day="Tuesday", | ||
use_task_logical_date=True, | ||
dag=dag, | ||
) |
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