def hook_threadResume(self, event, payload): task = RuntimeModel.getCurrentTask(event) if task.isRunning(): payload.append((ExtraeEventTypes.RUNNING_TASK_ID, task.id))
def hook_threadSuspend(self, event, payload): task = RuntimeModel.getCurrentTask(event) if task.isRunning(): payload.append( (ExtraeEventTypes.RUNNING_TASK_ID, RuntimeActivity.End))
def hook_taskExecute(self, event, payload): task = RuntimeModel.getCurrentTask(event) payload.append((ExtraeEventTypes.RUNNING_TASK_ID, task.id))