subtask

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FutureTask

type FutureTask int64

func (FutureTask) String

func (ft FutureTask) String() string

type SubmitOption

type SubmitOption func(*SubmitOptions)

SubmitOption is an interface for configuring a SubmitSubtask request.

func WithClusterSlug

func WithClusterSlug(clusterSlug string) SubmitOption

WithClusterSlug sets the cluster slug of the cluster where the task will be executed.

Defaults to the cluster of the task runner.

func WithDependencies

func WithDependencies(dependencies ...FutureTask) SubmitOption

WithDependencies sets the dependencies of the task.

func WithMaxRetries

func WithMaxRetries(maxRetries int64) SubmitOption

WithMaxRetries sets the maximum number of times a task can be automatically retried.

Defaults to 0.

type SubmitOptions

type SubmitOptions struct {
	Dependencies []FutureTask
	ClusterSlug  string
	MaxRetries   int64
}

SubmitOptions contains the configuration for a SubmitSubtask request.

Jump to

Keyboard shortcuts

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