qd icon indicating copy to clipboard operation
qd copied to clipboard

[Feature] 麻烦搞个独立的请求超时时间,单个任务的

Open aogg opened this issue 2 years ago • 6 comments

Verify steps

  • [x] Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • [X] Need 当前 QD 框架并不包含该功能特性或者还不完善
  • [X] Framework 这是 QD 框架应包含的特性,并非模板特性
  • [X] Meaningful 我提交的不是无意义的 催促更新或修复 请求

Describe the Feature

request_timeout = float(os.getenv('REQUEST_TIMEOUT', 30.0)) # HTTP Request 请求超时时间 connect_timeout = float(os.getenv('CONNECT_TIMEOUT', 30.0)) # HTTP Request 连接超时时间

Describe the solution

request_timeout = float(os.getenv('REQUEST_TIMEOUT', 30.0)) # HTTP Request 请求超时时间 connect_timeout = float(os.getenv('CONNECT_TIMEOUT', 30.0)) # HTTP Request 连接超时时间

Describe alternatives

No response

Additional context

No response

aogg avatar Jul 05 '23 13:07 aogg

https://github.com/qd-today/qd/blob/fc655a05d7cf88a65b0fa13156bcc98ad1909852/config.py#L99

请详细说明你的需求

a76yyyy avatar Jul 05 '23 13:07 a76yyyy

image 在这个配置超时时间 request_timeout = float(os.getenv('REQUEST_TIMEOUT', 30.0)) # HTTP Request 请求超时时间 目前已有的只能控制所有任务的请求时间,但需要的是单个请求的请求超时时间

aogg avatar Jul 05 '23 14:07 aogg

image 在这个配置超时时间 request_timeout = float(os.getenv('REQUEST_TIMEOUT', 30.0)) # HTTP Request 请求超时时间 目前已有的只能控制所有任务的请求时间,但需要的是单个请求的请求超时时间

为什么要单独控制一个请求的超时时间? 直接扩大全局超时时间的限制不能解决你的问题么?

想要实现你的需求很简单, 但还是请说明这个问题的必要性吧

a76yyyy avatar Jul 15 '23 02:07 a76yyyy

好家伙,理直气壮的要求,还以为你是老板呢

Verify steps

* [x]  Tracker 我已经在 [Issue Tracker](%E2%80%A6%E2%80%A6/) 中找过我要提出的问题

* [x]  Need 当前 QD 框架并不包含该功能特性或者还不完善

* [x]  Framework 这是 QD 框架应包含的特性,并非模板特性

* [x]  Meaningful 我提交的不是无意义的 催促更新或修复 请求

Describe the Feature

request_timeout = float(os.getenv('REQUEST_TIMEOUT', 30.0)) # HTTP Request 请求超时时间 connect_timeout = float(os.getenv('CONNECT_TIMEOUT', 30.0)) # HTTP Request 连接超时时间

Describe the solution

request_timeout = float(os.getenv('REQUEST_TIMEOUT', 30.0)) # HTTP Request 请求超时时间 connect_timeout = float(os.getenv('CONNECT_TIMEOUT', 30.0)) # HTTP Request 连接超时时间

Describe alternatives

No response

Additional context

No response

ZKBL avatar Jul 25 '23 05:07 ZKBL

好家伙,理直气壮的要求,还以为你是老板呢

倒是不需要这么说,只要能表明自己这个特性的使用情景和必要性就好

a76yyyy avatar Jul 25 '23 08:07 a76yyyy

啥?没那么严重吧,我只是正常提feature,那个打钩是你们弄的啊

aogg avatar Jul 26 '23 01:07 aogg