Documentation ¶
Index ¶
- Constants
- func ComputePreviousCheckpointPath(ctx context.Context, length int, nCtx handler.NodeExecutionContext, ...) (storage.DataReference, error)
- func ComputeRawOutputPrefix(ctx context.Context, length int, nCtx handler.NodeExecutionContext, ...) (io.RawOutputPaths, string, error)
- func GetTaskExecutionIdentifier(nCtx handler.NodeExecutionContext) *core.TaskExecutionIdentifier
- func ToTaskEventPhase(p pluginCore.Phase) core.TaskExecution_Phase
- func ToTaskExecutionEvent(input ToTaskExecutionEventInputs) (*event.TaskExecutionEvent, error)
- func ToTransitionType(ttype pluginCore.TransitionType) handler.TransitionType
- func WranglePluginsAndGenerateFinalList(ctx context.Context, cfg *config.TaskPluginConfig, pr PluginRegistryIface) (enabledPlugins []core.PluginEntry, defaultForTaskTypes map[pluginID][]taskType, ...)
- type CacheContents
- type CodecVersion
- type FutureFileReader
- func (f FutureFileReader) Cache(ctx context.Context, wf *v1alpha1.FlyteWorkflow, ...) error
- func (f FutureFileReader) CacheExists(ctx context.Context) (bool, error)
- func (f FutureFileReader) Exists(ctx context.Context) (bool, error)
- func (f FutureFileReader) GetLoc() storage.DataReference
- func (f FutureFileReader) Read(ctx context.Context) (*core.DynamicJobSpec, error)
- func (f FutureFileReader) RetrieveCache(ctx context.Context) (CacheContents, error)
- type Handler
- func (t Handler) Abort(ctx context.Context, nCtx handler.NodeExecutionContext, reason string) error
- func (t *Handler) CheckCatalogCache(ctx context.Context, tr pluginCore.TaskReader, inputReader io.InputReader, ...) (catalog.Entry, error)
- func (t Handler) Finalize(ctx context.Context, nCtx handler.NodeExecutionContext) error
- func (t *Handler) FinalizeRequired() bool
- func (t *Handler) GetOrExtendCatalogReservation(ctx context.Context, ownerID string, heartbeatInterval time.Duration, ...) (catalog.ReservationEntry, error)
- func (t Handler) Handle(ctx context.Context, nCtx handler.NodeExecutionContext) (handler.Transition, error)
- func (t *Handler) ReleaseCatalogReservation(ctx context.Context, ownerID string, tr pluginCore.TaskReader, ...) (catalog.ReservationEntry, error)
- func (t Handler) ResolvePlugin(ctx context.Context, ttype string, executionConfig v1alpha1.ExecutionConfig) (pluginCore.Plugin, error)
- func (t *Handler) Setup(ctx context.Context, sCtx handler.SetupContext) error
- func (t *Handler) ValidateOutputAndCacheAdd(ctx context.Context, nodeID v1alpha1.NodeID, i io.InputReader, ...) (catalog.Status, *io.ExecutionError, error)
- type MetricKey
- type PluginRegistryIface
- type RemoteFileWorkflowStore
- func (r RemoteFileWorkflowStore) Exists(ctx context.Context, path storage.DataReference) (bool, error)
- func (r RemoteFileWorkflowStore) GetCompiledWorkflow(ctx context.Context, source storage.DataReference) (*core.CompiledWorkflowClosure, error)
- func (r RemoteFileWorkflowStore) GetWorkflowCRD(ctx context.Context, source storage.DataReference) (*v1alpha1.FlyteWorkflow, error)
- func (r RemoteFileWorkflowStore) PutCompiledFlyteWorkflow(ctx context.Context, workflow *core.CompiledWorkflowClosure, ...) error
- func (r RemoteFileWorkflowStore) PutFlyteWorkflowCRD(ctx context.Context, wf *v1alpha1.FlyteWorkflow, target storage.DataReference) error
- type ToTaskExecutionEventInputs
Constants ¶
const DefaultMaxAttempts = 1
const IDMaxLength = 50
Variables ¶
This section is empty.
Functions ¶
func ComputePreviousCheckpointPath ¶ added in v0.16.0
func ComputePreviousCheckpointPath(ctx context.Context, length int, nCtx handler.NodeExecutionContext, currentNodeUniqueID v1alpha1.NodeID, currentAttempt uint32) (storage.DataReference, error)
ComputePreviousCheckpointPath returns the checkpoint path for the previous attempt, if this is the first attempt then returns an empty path
func ComputeRawOutputPrefix ¶ added in v0.16.0
func ComputeRawOutputPrefix(ctx context.Context, length int, nCtx handler.NodeExecutionContext, currentNodeUniqueID v1alpha1.NodeID, currentAttempt uint32) (io.RawOutputPaths, string, error)
ComputeRawOutputPrefix constructs the output directory, where raw outputs of a task can be stored by the task. FlytePropeller may not have access to this location and can be passed in per execution. the function also returns the uniqueID generated
func GetTaskExecutionIdentifier ¶ added in v0.1.13
func GetTaskExecutionIdentifier(nCtx handler.NodeExecutionContext) *core.TaskExecutionIdentifier
func ToTaskEventPhase ¶ added in v0.1.13
func ToTaskEventPhase(p pluginCore.Phase) core.TaskExecution_Phase
func ToTaskExecutionEvent ¶ added in v0.1.13
func ToTaskExecutionEvent(input ToTaskExecutionEventInputs) (*event.TaskExecutionEvent, error)
func ToTransitionType ¶ added in v0.1.13
func ToTransitionType(ttype pluginCore.TransitionType) handler.TransitionType
func WranglePluginsAndGenerateFinalList ¶ added in v0.1.13
func WranglePluginsAndGenerateFinalList(ctx context.Context, cfg *config.TaskPluginConfig, pr PluginRegistryIface) (enabledPlugins []core.PluginEntry, defaultForTaskTypes map[pluginID][]taskType, err error)
Types ¶
type CacheContents ¶ added in v0.10.5
type CacheContents struct { WorkflowCRD *v1alpha1.FlyteWorkflow CompiledWorkflow *core.CompiledWorkflowClosure }
type CodecVersion ¶ added in v0.1.13
type CodecVersion uint8
const (
GobCodecVersion CodecVersion = iota
)
type FutureFileReader ¶ added in v0.1.13
type FutureFileReader struct { RemoteFileWorkflowStore // contains filtered or unexported fields }
func NewRemoteFutureFileReader ¶ added in v0.1.13
func NewRemoteFutureFileReader(ctx context.Context, dataDir storage.DataReference, store *storage.DataStore) (FutureFileReader, error)
func (FutureFileReader) Cache ¶ added in v0.1.13
func (f FutureFileReader) Cache(ctx context.Context, wf *v1alpha1.FlyteWorkflow, workflowClosure *core.CompiledWorkflowClosure) error
func (FutureFileReader) CacheExists ¶ added in v0.1.13
func (f FutureFileReader) CacheExists(ctx context.Context) (bool, error)
func (FutureFileReader) Exists ¶ added in v0.1.13
func (f FutureFileReader) Exists(ctx context.Context) (bool, error)
func (FutureFileReader) GetLoc ¶ added in v1.1.68
func (f FutureFileReader) GetLoc() storage.DataReference
func (FutureFileReader) Read ¶ added in v0.1.13
func (f FutureFileReader) Read(ctx context.Context) (*core.DynamicJobSpec, error)
func (FutureFileReader) RetrieveCache ¶ added in v0.1.13
func (f FutureFileReader) RetrieveCache(ctx context.Context) (CacheContents, error)
type Handler ¶ added in v0.1.13
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CheckCatalogCache ¶ added in v0.1.13
func (t *Handler) CheckCatalogCache(ctx context.Context, tr pluginCore.TaskReader, inputReader io.InputReader, outputWriter io.OutputWriter) (catalog.Entry, error)
func (*Handler) FinalizeRequired ¶ added in v0.1.13
func (*Handler) GetOrExtendCatalogReservation ¶ added in v0.16.1
func (t *Handler) GetOrExtendCatalogReservation(ctx context.Context, ownerID string, heartbeatInterval time.Duration, tr pluginCore.TaskReader, inputReader io.InputReader) (catalog.ReservationEntry, error)
GetOrExtendCatalogReservation attempts to acquire an artifact reservation if the task is cachable and cache serializable. If the reservation already exists for this owner, the reservation is extended.
func (Handler) Handle ¶ added in v0.1.13
func (t Handler) Handle(ctx context.Context, nCtx handler.NodeExecutionContext) (handler.Transition, error)
func (*Handler) ReleaseCatalogReservation ¶ added in v0.16.1
func (t *Handler) ReleaseCatalogReservation(ctx context.Context, ownerID string, tr pluginCore.TaskReader, inputReader io.InputReader) (catalog.ReservationEntry, error)
ReleaseCatalogReservation attempts to release an artifact reservation if the task is cachable and cache serializable. If the reservation does not exist for this owner (e.x. it never existed or has been acquired by another owner) this call is still successful.
func (Handler) ResolvePlugin ¶ added in v0.1.13
func (t Handler) ResolvePlugin(ctx context.Context, ttype string, executionConfig v1alpha1.ExecutionConfig) (pluginCore.Plugin, error)
func (*Handler) ValidateOutputAndCacheAdd ¶ added in v0.1.13
func (t *Handler) ValidateOutputAndCacheAdd(ctx context.Context, nodeID v1alpha1.NodeID, i io.InputReader, r io.OutputReader, outputCommitter io.OutputWriter, executionConfig v1alpha1.ExecutionConfig, tr ioutils.SimpleTaskReader, m catalog.Metadata) (catalog.Status, *io.ExecutionError, error)
type PluginRegistryIface ¶ added in v0.1.13
type PluginRegistryIface interface { GetCorePlugins() []pluginCore.PluginEntry GetK8sPlugins() []pluginK8s.PluginEntry }
The plugin interface available especially for testing.
type RemoteFileWorkflowStore ¶ added in v0.1.13
type RemoteFileWorkflowStore struct {
// contains filtered or unexported fields
}
func NewRemoteWorkflowStore ¶ added in v0.1.13
func NewRemoteWorkflowStore(store *storage.DataStore) RemoteFileWorkflowStore
func (RemoteFileWorkflowStore) Exists ¶ added in v0.1.13
func (r RemoteFileWorkflowStore) Exists(ctx context.Context, path storage.DataReference) (bool, error)
func (RemoteFileWorkflowStore) GetCompiledWorkflow ¶ added in v0.10.5
func (r RemoteFileWorkflowStore) GetCompiledWorkflow(ctx context.Context, source storage.DataReference) (*core.CompiledWorkflowClosure, error)
func (RemoteFileWorkflowStore) GetWorkflowCRD ¶ added in v0.10.5
func (r RemoteFileWorkflowStore) GetWorkflowCRD(ctx context.Context, source storage.DataReference) (*v1alpha1.FlyteWorkflow, error)
func (RemoteFileWorkflowStore) PutCompiledFlyteWorkflow ¶ added in v0.10.5
func (r RemoteFileWorkflowStore) PutCompiledFlyteWorkflow(ctx context.Context, workflow *core.CompiledWorkflowClosure, target storage.DataReference) error
func (RemoteFileWorkflowStore) PutFlyteWorkflowCRD ¶ added in v0.10.5
func (r RemoteFileWorkflowStore) PutFlyteWorkflowCRD(ctx context.Context, wf *v1alpha1.FlyteWorkflow, target storage.DataReference) error
type ToTaskExecutionEventInputs ¶ added in v0.7.9
type ToTaskExecutionEventInputs struct { TaskExecContext pluginCore.TaskExecutionContext InputReader io.InputFilePaths Inputs *core.LiteralMap EventConfig *config.EventConfig OutputWriter io.OutputFilePaths Info pluginCore.PhaseInfo NodeExecutionMetadata handler.NodeExecutionMetadata ExecContext executors.ExecutionContext TaskType string PluginID string ResourcePoolInfo []*event.ResourcePoolInfo ClusterID string OccurredAt time.Time }