sdkcontext

package
v1.0.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// WorkloadContextKey stores the current workload
	//
	// workload := ctx.Value(sdkcontext.WorkloadContextKey).(api.ExecuteTaskWorkload)
	WorkloadContextKey  = workoadContextKey{}
	RuntimeTIContextKey = runtimeTIContextKey{}
	ApiClientContextKey = apiClientContextKey{}
	WorkerContextKey    = workerContextKey{}

	// RuntimeContextKey stores the public, task-facing runtime context
	// (task instance identifiers and the Dag run's scheduling timestamps).
	// The coordinator-mode runtime populates it from StartupDetails; the
	// bundle runtime reads it to inject an sdk.TIRunContext parameter into
	// task functions rather than exposing this key directly. Its value type
	// is sdk.TIRunContext (built over a placeholder base context; the bundle
	// runtime rebuilds it around the live task context at injection time),
	// but this package does not import sdk to avoid an import cycle.
	RuntimeContextKey = runtimeContextKey{}

	// SdkClientContextKey, when present, holds an sdk.Client implementation
	// that should be injected into task functions instead of constructing a
	// default HTTP-backed client. The coordinator-mode runtime uses this to
	// route task SDK calls (GetVariable, GetConnection, ...) over the
	// supervisor comm socket rather than to the Execution API.
	SdkClientContextKey = sdkClientContextKey{}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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