buildcron

package
v0.0.0-...-141b21d Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 17 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 ScanBuilderQueues

func ScanBuilderQueues(ctx context.Context) error

ScanBuilderQueues scans all of the BuilderQueue entities and look for builds that have been ended and enqueue tasks to pop them. Best effort, errors are ignored.

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