953
// (workflow-backed) vs V2 (CHASM), using the same default visibility queries as
954
// `schedule migrate --from-visibility`.
955
>
func AdminScheduleStatus(c *cli.Context, clientFactory ClientFactory) error {
commands.go
956
>
ns, err := getRequiredOption(c, FlagNamespace)
957
>
if err != nil {
958
return err
959
}
960
961
>
wfClient := clientFactory.WorkflowClient(c)
commands.go
962
>
963
>
v1Count, err := countScheduleVisibility(c, wfClient, ns, v1ScheduleVisibilityQuery())
964
>
if err != nil {
965
return fmt.Errorf("unable to count V1 schedules: %w", err)
966
}