atul-astronomer opened a new issue, #55875:
URL: https://github.com/apache/airflow/issues/55875
### Apache Airflow version
main (development)
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
If user is importing old v1 import statements in their dag then user should
see deprecation warning in the task logs about it.
### What you think should happen instead?
_No response_
### How to reproduce
Use below dag:
```python
import datetime
from airflow.providers.standard.operators.bash import BashOperator
from airflow import DAG
dag = DAG(
'test_api_dag',
start_date=datetime.datetime(2025, 8,25),
schedule='@daily',
is_paused_upon_creation=False,
catchup=True,
)
hello_task = BashOperator(
task_id="hello",
bash_command="echo hello",
dag=dag
)
hello_task
```
```javascript
[2025-09-19 08:05:35] INFO - DAG bundles loaded: dags-folder
source=airflow.dag_processing.bundles.manager.DagBundlesManager
loc=manager.py:202
[2025-09-19 08:05:35] INFO - Filling up the DagBag from
/files/dags/test_api_dag.py source=airflow.models.dagbag.DagBag
loc=dagbag.py:593
[2025-09-19 08:05:35] INFO - Tmp dir root location: /tmp
source=airflow.task.hooks.airflow.providers.standard.hooks.subprocess.SubprocessHook
loc=subprocess.py:78
[2025-09-19 08:05:35] INFO - Running command: ['/usr/bin/bash', '-c', 'echo
hello']
source=airflow.task.hooks.airflow.providers.standard.hooks.subprocess.SubprocessHook
loc=subprocess.py:88
[2025-09-19 08:05:35] INFO - Output:
source=airflow.task.hooks.airflow.providers.standard.hooks.subprocess.SubprocessHook
loc=subprocess.py:99
[2025-09-19 08:05:35] INFO - hello
source=airflow.task.hooks.airflow.providers.standard.hooks.subprocess.SubprocessHook
loc=subprocess.py:106
[2025-09-19 08:05:35] INFO - Command exited with return code 0
source=airflow.task.hooks.airflow.providers.standard.hooks.subprocess.SubprocessHook
loc=subprocess.py:110
[2025-09-19 08:05:35] INFO - Pushing xcom
ti=RuntimeTaskInstance(id=UUID('01996101-d7aa-71ee-99d1-6df0076b9c09'),
task_id='hello', dag_id='test_api_dag',
run_id='scheduled__2025-09-15T00:00:00+00:00', try_number=1,
dag_version_id=UUID('01996101-af05-7703-b4dd-88c25162a3f9'), map_index=-1,
hostname='6ee9e392dd62', context_carrier={}, task=<Task(BashOperator): hello>,
bundle_instance=LocalDagBundle(name=dags-folder), max_tries=0,
start_date=datetime.datetime(2025, 9, 19, 8, 5, 34, 834990,
tzinfo=datetime.timezone.utc), end_date=None, state=<TaskInstanceState.RUNNING:
'running'>, is_mapped=False, rendered_map_index=None) source=task
loc=task_runner.py:1352
```
### Operating System
Linux
### Versions of Apache Airflow Providers
_No response_
### Deployment
Other
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]