buildcron

package
v0.0.0-...-a82170c Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package buildcron implements various cron handlers for build entities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteOldBuilds

func DeleteOldBuilds(ctx context.Context) error

DeleteOldBuilds deletes builds and other descendants that were created longer than model.BuildStorageDuration ago.

func ResetExpiredLeases

func ResetExpiredLeases(ctx context.Context) error

ResetExpiredLeases resets expired leases.

func TimeoutExpiredBuilds

func TimeoutExpiredBuilds(ctx context.Context) error

TimeoutExpiredBuilds marks incomplete builds that were created longer than model.BuildMaxCompletionTime w/ INFRA_FAILURE.

func TriggerSyncBackendTasks

func TriggerSyncBackendTasks(ctx context.Context) error

TriggerSyncBackendTasks finds all (project, backend_target) pairs and triggers SyncBuildsWithBackendTasks tasks for each pair.

Types

This section is empty.

Jump to

Keyboard shortcuts

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