Simulation.Inject adds actor at the end of the interval #747
Replies: 3 comments 8 replies
-
|
HI @michaelplavnik , var startDelay = _randomizer.Next(0, int injectInterval.TotalMilliseconds)
Run(scenario, startDelay);I think we can introduce some settings for NBomber to schedule requests at the exact time. I think we probably need to explain this nuance in documentation. |
Beta Was this translation helpful? Give feedback.
-
|
One more comment: |
Beta Was this translation helpful? Give feedback.
-
|
Meanwhile, could you please suggest how can I simulate scheduled task as described? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to simulate scheduled task behavior, where one execution happens every 5 minutes, and run it for hours (30 min at least).
I attempted it as follows:
Simulation.Inject(1, TimeSpan.FromMinutes(5), TimeSpan.FromMinutes(30))Observation shows that actor is injected at the end of the interval (and not really 5 min interval, but somehow ~ 4 min 30 sec).
As body of the simulation might run more then 30 sec, it is confusing to interpret.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions