logpath

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2026 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, baseLogDir, dagLogDir, dagName, dagRunID string) (string, error)

Generate expands the configured log directories, creates the DAG-run log directory if needed, and returns the full log file path.

func GenerateDir

func GenerateDir(ctx context.Context, baseDir, dagDir, dagName, dagRunID string) (string, error)

GenerateDir expands the configured directories, creates the DAG-run directory if needed, and returns the per-run directory path.

Types

type Config

type Config struct {
	BaseDir   string
	DAGLogDir string
	Name      string
	DAGRunID  string
}

Config defines configuration for DAG run log file creation.

func (Config) LogDir

func (cfg Config) LogDir() (string, error)

LogDir is kept for backward compatibility with log-specific call sites.

func (Config) LogFile

func (cfg Config) LogFile() string

LogFile constructs the scheduler log filename using the current timestamp and a truncated DAG-run ID.

func (Config) RunDir

func (cfg Config) RunDir() (string, error)

RunDir creates and returns the per-run directory based on the configuration.

func (Config) Validate

func (cfg Config) Validate() error

Validate checks that essential fields are provided.

Jump to

Keyboard shortcuts

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