tasks

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RunNewJobs is handled by task that start prepared jobs
	RunNewJobs = "run_new_jobs"
	// CheckJobsStatus is handled by task that update scheduled jobs status
	CheckJobsStatus = "check_jobs_status"
	// CheckOneShotBackupsStatus is handled by task that update jobs status for one shot backups
	CheckOneShotBackupsStatus = "check_backups_status"
	// CleanupExpiredSinks is handled by task that cleanup deleted backups or older files
	CleanupExpiredSinks = "cleanup_expired_sinks"
	// RescheduleJobsWithQuotaError is handled by task that start a new jobs that were interrupted due to quota exhaustion
	RescheduleJobsWithQuotaError = "reschedule_jobs_with_quota_error"
	// PrepareBackupJobs is handled by task that prepares new Jobs for scheduling
	PrepareBackupJobs = "prepare_backup_jobs"
	// CheckJobsStuck is handled by task that prepares check Jobs that are running to long
	CheckJobsStuck = "check_jobs_stuck"
	// CheckSinkProjectCompliance is handled by task that checks if backups are still immutable
	CheckSinkProjectCompliance = "check_sink_project_compliance"
	// CleanupTrashcans is handled by task that cleans up trashcan
	CleanupTrashcans = "cleanup_trashcans"
)

Variables

This section is empty.

Functions

func RunTask

func RunTask(task string, tokenSourceProvider impersonate.TargetPrincipalForProjectProvider, credentialsProvider secret.SecretProvider)

RunTask triggers specified task

Types

type TaskRunner

type TaskRunner interface {
	Run(context.Context)
}

TaskRunner runs tasks

Jump to

Keyboard shortcuts

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