utils

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunUntilCancelledOrTimeout

func RunUntilCancelledOrTimeout(ctx context.Context, logger *slog.Logger, check Check, interval time.Duration) error

func TryRerunFailedWorkflows added in v1.4.0

func TryRerunFailedWorkflows(ctx context.Context, client github.RerunFailedWorkflows, logger *slog.Logger, owner, repo, ref string, actionRetries, retriesDone int) (bool, int)

TryRerunFailedWorkflows attempts to rerun failed workflows if retries are available. Returns whether to continue waiting, and the updated retriesDone count.

Types

type Check

type Check interface {
	Check(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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