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 2021/10/12 01:15:22 UTC

[GitHub] [airflow] yuanke7 edited a comment on issue #18422: No response from request api(longer than 30min) while using SimpleHttpOperator

yuanke7 edited a comment on issue #18422:
URL: https://github.com/apache/airflow/issues/18422#issuecomment-926321159


   > Can you please share the python code of your DAG?
   > I'll see if I can replicate the issue.
   
   Hi Jorricks, here is my simple flask API for test which you can see it would response  in 35min at least.
   ```
   @bp.route('/test')

   def test_api():
    
         start_ = time.localtime()
    
         min = int(request.args.get('min', 35))
    
         logger.info(f'testing start (min{min})...')
    
         time.sleep(60 * min)
   
         logger.info(f'testing end (min{min}).')
    
         end_ = time.localtime()
    
         return flask.json.dumps({'min': min, 'start':start_, 'end':end_})
   ```


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org