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.
Click to show internal directories.
Click to hide internal directories.