Skip to content

Commit

Permalink
modify wf/activity completed logs
Browse files Browse the repository at this point in the history
Signed-off-by: Shivam Kumar <shivamkm07@gmail.com>
  • Loading branch information
shivamkm07 committed Jan 27, 2024
1 parent c53fc16 commit 5b0b73e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runtime/wfengine/backends/actors/activity_actor.go
Expand Up @@ -241,7 +241,7 @@ loop:
}
}
}
wfLogger.Debugf("Activity actor '%s': activity '%s' completed for workflow with instanceId '%s' ", a.actorID, name, wi.InstanceID)
wfLogger.Debugf("Activity actor '%s': activity completed for workflow with instanceId '%s' activityName '%s'", a.actorID, wi.InstanceID, name)

Check warning on line 244 in pkg/runtime/wfengine/backends/actors/activity_actor.go

View check run for this annotation

Codecov / codecov/patch

pkg/runtime/wfengine/backends/actors/activity_actor.go#L244

Added line #L244 was not covered by tests

// publish the result back to the workflow actor as a new event to be processed
resultData, err := backend.MarshalHistoryEvent(wi.Result)
Expand Down
3 changes: 3 additions & 0 deletions pkg/runtime/wfengine/backends/actors/workflow_actor.go
Expand Up @@ -660,6 +660,9 @@ func (wf *workflowActor) runWorkflow(ctx context.Context, reminder actors.Intern
}
}
}
if runtimeState.IsCompleted() {
wfLogger.Infof("Workflow Actor '%s': workflow completed with status: '%s' workflowName: '%s'", wf.actorID, runtimeState.RuntimeStatus().String(), workflowName)

Check warning on line 664 in pkg/runtime/wfengine/backends/actors/workflow_actor.go

View check run for this annotation

Codecov / codecov/patch

pkg/runtime/wfengine/backends/actors/workflow_actor.go#L663-L664

Added lines #L663 - L664 were not covered by tests
}
return nil
}

Expand Down

0 comments on commit 5b0b73e

Please sign in to comment.