建立基于时间的任务的思考时间延迟? [英] Building thinking time delay with time based tasks?

查看:111
本文介绍了建立基于时间的任务的思考时间延迟?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个仪表工作,需要在某些HTTP请求之间建立一些思考时间.但是在那段思考时间里,我仍然需要在特定时间间隔内发送保持活动请求.

I have this meter job for which I need to build some think time between certain HTTP Requests. But during those thinking time I still need to send a keep alive request on specific interval.

例如:

  • 用户登录
  • 获取一些个人资料信息.
  • 然后他开始做一些工作.

每个工作单元都会延迟一些随机延迟,范围从1到30分钟不等. 在这段时间内,我们仍然需要以固定的时间间隔(例如5分钟)向服务器发送ImAlive请求. 一旦思考时间到期(例如可能在17毫秒),循环就会退出.

each unit of work is delayed by some random delay varying from 1 to 30 minutes. During that time we still need to send to there server a ImAlive request at fix interval (like 5 minutes). Once the thinking time is expired which could be at 17m12s for example, then the loop exit.

推荐答案

要模拟延迟,可以使用

For simulate the delay you can use Runtime Controller which will be executed with given seconds you define the keep alive requests, inside Runtime Controller add Timer as Gaussian Random Timer to add delay between keep alive requests.

这篇关于建立基于时间的任务的思考时间延迟?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆