blob: fe90553929e4d56df727cdeeaad5dfaab6ecc89d [file] [log] [blame]
package backends
import (
"context"
"go.skia.org/infra/go/sklog"
"google.golang.org/api/workflowexecutions/v1"
)
// DialCloudWorkflowsExecutionService returns a google cloud workflows 'Executions' service client.
func DialCloudWorkflowsExecutionService(ctx context.Context) (*workflowexecutions.Service, error) {
workflowexecutionsService, err := workflowexecutions.NewService(ctx)
if err != nil {
sklog.Infof("cloud workflow service dial failed: %v", err)
return nil, err
}
return workflowexecutionsService, nil
}