You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/04/07 15:38:06 UTC
[GitHub] [airflow] khyurri commented on issue #8160: SimpleHttpOperator
aborts connection after 5 minutes
khyurri commented on issue #8160: SimpleHttpOperator aborts connection after 5 minutes
URL: https://github.com/apache/airflow/issues/8160#issuecomment-610460054
It seems that the server to which SimpleHttpOperator connects breaks the connection after 5 minutes.
I've tried reproduce this bug using simple flask app:
```python
from flask import Flask
from time import monotonic, sleep
app = Flask(__name__)
@app.route('/')
def hello_world():
t0 = monotonic()
sleep(302)
t1 = monotonic()
return "{}".format(t1-t0)
```
Everything works great:
```
[2020-04-07 18:28:08,024] {http_operator.py:87} INFO - Calling HTTP method
[2020-04-07 18:28:08,046] {logging_mixin.py:112} INFO - [2020-04-07 18:28:08,045] {base_hook.py:87} INFO - Using connection to: id: http_default. Host: http://127.0.0.1:5000, Port: None, Schema: None, Login: None, Password: None, extra: None
[2020-04-07 18:28:08,051] {logging_mixin.py:112} INFO - [2020-04-07 18:28:08,050] {http_hook.py:136} INFO - Sending 'GET' to url: http://127.0.0.1:5000/
[2020-04-07 18:33:10,086] {taskinstance.py:1065} INFO - Marking task as SUCCESS.dag_id=test_dag_v2, task_id=run_this_1, execution_date=20200405T000000, start_date=20200407T152807, end_date=20200407T153310
[2020-04-07 18:33:10,396] {logging_mixin.py:112} INFO - [2020-04-07 18:33:10,395] {local_task_job.py:103} INFO - Task exited with return code 0
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services