Skip to content

Commit 67d7be6

Browse files
committed
full query
Signed-off-by: Stephan Behnke <stephanos@users.noreply.github.com>
1 parent 31cd545 commit 67d7be6

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

loadgen/helpers.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ func GetNonCompletedWorkflows(ctx context.Context, info ScenarioInfo, searchAttr
7171
runID,
7272
)
7373

74-
info.Logger.Infof("Using visibility query for non-completed workflows: %q", nonCompletedQuery)
74+
info.Logger.Infof("Visibility query for non-completed workflows - CLI command: temporal workflow list --namespace %s --query %q",
75+
info.Namespace, nonCompletedQuery)
7576

7677
resp, err := info.Client.ListWorkflow(ctx, &workflowservice.ListWorkflowExecutionsRequest{
7778
Namespace: info.Namespace,
@@ -110,7 +111,8 @@ func VerifyNoFailedWorkflows(ctx context.Context, info ScenarioInfo, searchAttri
110111
statusQuery := fmt.Sprintf(
111112
"%s='%s' and ExecutionStatus = '%s'",
112113
searchAttribute, runID, status)
113-
info.Logger.Infof("Using visibility query for %s workflows: %q", status.String(), statusQuery)
114+
info.Logger.Infof("Visibility query for %s workflows - CLI command: temporal workflow count --namespace %s --query %q",
115+
status.String(), info.Namespace, statusQuery)
114116
visibilityCount, err := info.Client.CountWorkflow(ctx, &workflowservice.CountWorkflowExecutionsRequest{
115117
Namespace: info.Namespace,
116118
Query: statusQuery,

loadgen/workflow_completion_verifier.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ func (wct *WorkflowCompletionVerifier) Verify(ctx context.Context, state Executo
8787
wct.info.ExecutionID,
8888
)
8989

90-
wct.info.Logger.Infof("Using visibility query for completed workflows: %q", query)
90+
wct.info.Logger.Infof("Visibility query for completed workflows - CLI command: temporal workflow count --namespace %s --query %q",
91+
wct.info.Namespace, query)
9192

9293
var lastErrors []error
9394

@@ -156,7 +157,8 @@ func (wct *WorkflowCompletionVerifier) VerifyNoRunningWorkflows(ctx context.Cont
156157
query := fmt.Sprintf("TaskQueue = %q and ExecutionStatus = 'Running'",
157158
TaskQueueForRun(wct.info.RunID))
158159

159-
wct.info.Logger.Infof("Using visibility query for running workflows: %q", query)
160+
wct.info.Logger.Infof("Visibility query for running workflows - CLI command: temporal workflow count --namespace %s --query %q",
161+
wct.info.Namespace, query)
160162

161163
// Setup retry loop
162164
checkTicker := time.NewTicker(3 * time.Second)

0 commit comments

Comments
 (0)