run

package
v0.0.151 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunEntityDesc = entity.NewEntityDescriptor(
	"run",
	"runs",
	func(r *RunEntity) string {
		createdAt, err := api.ParseAndFormatDateToLocalTime(r.GetCreatedAt())

		if err != nil {
			return fmt.Sprintf("%s \t %s \t %s", r.GetJobType(), r.GetCreatedAt(), r.GetStatus())
		}
		return fmt.Sprintf("%s \t %s \t %s", r.GetJobType(), createdAt, r.GetStatus())
	},
	func(r *RunEntity) string { return r.GetJobId() },
)

Functions

func GetRunLogs

func GetRunLogs(ctx context.Context, jobId string) ([]tlApi.PodLogs, error)

func GetTopLogs

func GetTopLogs(logs []tlApi.PodLogs, pat *regexp.Regexp, count int) []string

func PrintLogs

func PrintLogs(logs []tlApi.PodLogs)

func WrapLogsInTarFile

func WrapLogsInTarFile(logs []tlApi.PodLogs, output string, defaultFileName string) (string, error)

Types

type LogsPageContent added in v0.0.139

type LogsPageContent struct {
	Logs []string
}

func (*LogsPageContent) Init added in v0.0.139

func (l *LogsPageContent) Init() tea.Cmd

func (*LogsPageContent) Update added in v0.0.139

func (l *LogsPageContent) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*LogsPageContent) View added in v0.0.139

func (l *LogsPageContent) View() string

type RunEntity

type RunEntity = tensorleapapi.RunProcess

func GetRuns

func GetRuns(ctx context.Context, subTypes []tensorleapapi.JobSubType, statuses []tensorleapapi.JobStatus, projectId string) ([]RunEntity, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL