yuanke7 opened a new issue #18422:
URL: https://github.com/apache/airflow/issues/18422


   ### Apache Airflow version
   
   2.1.2
   
   ### Operating System
   
   CentOS Linux 7
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-amazon==2.0.0
   apache-airflow-providers-celery==2.0.0
   apache-airflow-providers-cncf-kubernetes==2.0.0
   apache-airflow-providers-docker==2.0.0
   apache-airflow-providers-elasticsearch==2.0.2
   apache-airflow-providers-ftp==2.0.0
   apache-airflow-providers-google==4.0.0
   apache-airflow-providers-grpc==2.0.0
   apache-airflow-providers-hashicorp==2.0.0
   apache-airflow-providers-http==2.0.0
   apache-airflow-providers-imap==2.0.0
   apache-airflow-providers-microsoft-azure==3.0.0
   apache-airflow-providers-mysql==2.0.0
   apache-airflow-providers-postgres==2.0.0
   apache-airflow-providers-redis==2.0.0
   apache-airflow-providers-sendgrid==2.0.0
   apache-airflow-providers-sftp==2.0.0
   apache-airflow-providers-slack==4.0.0
   apache-airflow-providers-sqlite==2.0.0
   apache-airflow-providers-ssh==2.0.0
   
   
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   _No response_
   
   ### What happened
   
   I'm using SimpleHttpOperator to request an api which get reponse longer than 
30min often, but task is still in running state even api has already returned a 
response.
   Here is one of my task code:
   `psd_report = SimpleHttpOperator( task_id='psd_report', method='GET', 
http_conn_id=WIN_SERVER_1, endpoint='general/psd_report', response_check=lambda 
response : response.json().get('Success'), response_filter=lambda response : 
response.json(), execution_timeout=timedelta(hours=1), dag=dag, )`
   Here is my api response data:
   `{"success":True}`
   
   ### What you expected to happen
   
   I expected that task using SimpleHttpOperator could switch state from 
running to success so that downstream task could get into the queue.
   
   
   
   ### How to reproduce
   
   Creat a SimpleHttpOperator task, request an api that need at least 30 min or 
more to response. Trigger this task you could find even api has returned a 
response, the task is still in running state.
   
   ### 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]


Reply via email to