tasks

package
v1.113.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearTaskStatus added in v1.112.0

func ClearTaskStatus(id string) error

func GetTaskStatus added in v1.112.0

func GetTaskStatus(id string) (string, string, error)

func SetTaskStatus added in v1.112.0

func SetTaskStatus(id string, message string, status string) error

func StartTaskMonitor added in v1.112.0

func StartTaskMonitor(taskID string, finishedChan <-chan error)

func StartTicker added in v1.112.0

func StartTicker(taskID string, finishedChan <-chan struct{})

func UpdateTaskStatusTimestamp added in v1.112.0

func UpdateTaskStatusTimestamp(id string) error

Types

type TaskStatus added in v1.112.0

type TaskStatus struct {
	Message   string    `json:"message"`
	Status    string    `json:"status"`
	UpdatedAt time.Time `json:"updatedAt"`
}

Jump to

Keyboard shortcuts

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