MyWorkflow {
myWorkflowMethod() {
log.info("Workflow Started");
myActivity.myActivityMethod():
log.info("Workflow Completed");
}
myQueryMethod() {
return "Hello World";
}
}
Everytime I invoke the query method from temporal web, I see the "Workflow Started" and "Workflow Completed" log messages.
From what I understand, this is an expected behaviour as Temporal internally replays the workflow execution before fullfilling the query method.
Am I correct?
Is there a way to prevent duplicate logs?