How to customize Activity Type in Go
To customize the Activity Type, set the Name parameter with RegisterOptions when registering your Activity with a Worker.
- Type:
string - Default: function name
// ...
w := worker.New(temporalClient, "your_task_queue_name", worker.Options{})
registerOptions := activity.RegisterOptions{
Name: "YourActivityName",
// ...
}
w.RegisterActivityWithOptions(a.YourActivityDefinition, registerOptions)
// ...