Add note in Updating.md about the removel of DagRun.ID_PREFIX (#8949)

This commit is contained in:
Kaxil Naik 2020-05-21 12:17:48 +01:00 коммит произвёл GitHub
Родитель 16206cd626
Коммит 97b6cc7619
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 24 добавлений и 0 удалений

Просмотреть файл

@ -101,6 +101,30 @@ To maintain consistent behavior, both successful or skipped downstream task can
`wait_for_downstream=True` flag.
### Use DagRunType.SCHEDULED.value instead of DagRun.ID_PREFIX
All the run_id prefixes for different kind of DagRuns have been grouped into a single
enum in `airflow.utils.types.DagRunType`.
Previously, there were defined in various places, example as `ID_PREFIX` class variables for
`DagRun`, `BackfillJob` and in `_trigger_dag` function.
Was:
```python
>> from airflow.models.dagrun import DagRun
>> DagRun.ID_PREFIX
scheduled__
```
Replaced by:
```python
>> from airflow.utils.types import DagRunType
>> DagRunType.SCHEDULED.value
scheduled
```
### Ability to patch Pool.DEFAULT_POOL_NAME in BaseOperator
It was not possible to patch pool in BaseOperator as the signature sets the default value of pool
as Pool.DEFAULT_POOL_NAME.