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
My task workflow requires something like the on_start() in a super-TaskSet, but the requirement is that the on_start() function execute every time a sub-TaskSet is interrupted and returns control to the super-TaskSet. From what I can tell, the on_start() is only ever called once.
The use case is opening a document in the super-TaskSet and then, in the sub-TaskSet, manipulating and eventually closing/leaving the document (via an interrupt) and returning to the super-TaskSet where the document must then be re-opened before returning to the sub-TaskSet.
Perhaps I am missing an existing pattern for achieving this workflow?
Expected behavior
N/A
Actual behavior
A/A
Environment settings (for bug reports)
OS: Mac
Python version: 3.6.3
Locust version: 1.8.1
Steps to reproduce (for bug reports)
N/A
The text was updated successfully, but these errors were encountered:
classSuperTaskSet(TaskSet):
defexecute_next_task(self):
# insert code to be executed before every task heresuper(SuperTaskSet, self).execute_next_task()
Description of
issue /feature requestMy task workflow requires something like the on_start() in a super-TaskSet, but the requirement is that the on_start() function execute every time a sub-TaskSet is interrupted and returns control to the super-TaskSet. From what I can tell, the on_start() is only ever called once.
The use case is opening a document in the super-TaskSet and then, in the sub-TaskSet, manipulating and eventually closing/leaving the document (via an interrupt) and returning to the super-TaskSet where the document must then be re-opened before returning to the sub-TaskSet.
Perhaps I am missing an existing pattern for achieving this workflow?
Expected behavior
N/A
Actual behavior
A/A
Environment settings (for bug reports)
Steps to reproduce (for bug reports)
N/A
The text was updated successfully, but these errors were encountered: