You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sub sub task A function (when done, we want to return to subtask 1 and from there return to main task)
sub task 2
subtask 2 function
...
In such a setup, would sub task 1 need to include a stop function in addition to the "subtask 1 function" so that it exits back to main task? And similarly the sub sub task A needs a stop function to return to subtask 1? If so, would stop() be weighted 1 and the other task function be also weighted 1, or should task be weight 2 and stop() be weight 1 so that we always execute the task before execute stop?
Or just call self.interrupt() at the end of sub task 1, sub sub task A? So no need for separate stop task method with weighting? Or no need for interrupt when have only single task subtasks?
The text was updated successfully, but these errors were encountered:
It's not clear from the documentation http://docs.locust.io/en/latest/writing-a-locustfile.html#tasksets-can-be-nested, maybe some elaboration would help, or another example.
Say if I wanted to have:
Main task
...
In such a setup, would sub task 1 need to include a stop function in addition to the "subtask 1 function" so that it exits back to main task? And similarly the sub sub task A needs a stop function to return to subtask 1? If so, would stop() be weighted 1 and the other task function be also weighted 1, or should task be weight 2 and stop() be weight 1 so that we always execute the task before execute stop?
Or just call self.interrupt() at the end of sub task 1, sub sub task A? So no need for separate stop task method with weighting? Or no need for interrupt when have only single task subtasks?
The text was updated successfully, but these errors were encountered: