cadence client raising panic
puppet-py opened this issue · 0 comments
Describe the bug
It is not a bug but more of an understanding ask(first time into Cadence)
Scenario
I have a cadence server running in my sandbox environment.
Intent is to fetch the workflow status
I am trying to use the cadence client go.uber.org/cadence/client
on my local host to talk to this cadence server.
This is my simple code snippet:
var cadClient client.Client
func main() {
wfID := "01ERMTDZHBYCH4GECHB3J692PC" << I got this from cadence-ui
ctx := context.Background()
wf := cadClientlient.GetWorkflow(ctx, wfID,"") <<< Panic hits here
log.Println("Workflow RunID: ",wf.GetID())
}
I am sure getting it wrong because the client does not know how to reach the cadence server.
I referred this https://cadenceworkflow.io/docs/go-client/ to find the correct usage but could not find any reference (possible that I might have missed it).
Any help in how to resolve/implement this, will be of much help