897
898
// Update custom memo.
899
>
if req.FrontendRequest.GetMemo() != nil {
scheduler.go
900
visibility := s.Visibility.Get(ctx)
901
visibility.ReplaceCustomMemo(ctx, req.FrontendRequest.GetMemo().GetFields())
902
}
903
904
>
s.Schedule = req.FrontendRequest.Schedule
scheduler.go
905
>
s.setNullableFields()
906
>
907
>
s.Info.UpdateTime = timestamppb.New(ctx.Now(s))
908
>
s.updateConflictToken()
909
>
s.getOrCreateEventLog(ctx).LogEvent(ctx, "updated via API")
910
>
911
>
// Since the spec may have been updated, kick off the generator.
912
>
s.Generator.Get(ctx).Generate(ctx)
913
>
914
>
return &schedulerpb.UpdateScheduleResponse{
915
>
FrontendResponse: &workflowservice.UpdateScheduleResponse{},
916
>
}, nil
917
}
918