flytekit.extend.context_manager#

class ExecutionState.Mode(value)[source]

Defines the possible execution modes, which in turn affects execution behavior.

ExecutionState.Mode.TASK_EXECUTION

alias of Mode.TASK_EXECUTION

ExecutionState.Mode.LOCAL_WORKFLOW_EXECUTION

alias of Mode.LOCAL_WORKFLOW_EXECUTION

ExecutionState.Mode.LOCAL_TASK_EXECUTION

alias of Mode.LOCAL_TASK_EXECUTION

Classes

BranchEvalMode(value)

This is a 3-way class, with the None value meaning that we are not within a conditional context.

CompilationState(prefix[, mode, ...])

Compilation state is used during the compilation of a workflow or task.

ExecutionParameters(execution_date, tmp_dir, ...)

This is a run-time user-centric context object that is accessible to every @task method.

ExecutionState(working_dir[, mode, ...])

This is the context that is active when executing a task or a local workflow.

FlyteContext(file_access[, level, ...])

This is an internal-facing context object, that most users will not have to deal with.

FlyteContextManager()

FlyteContextManager manages the execution context within Flytekit.

FlyteEntities()

This is a global Object that tracks various tasks and workflows that are declared within a VM during the

OutputMetadata(artifact, dynamic_partitions)

OutputMetadataTracker([output_metadata])

This class is for the users to set arbitrary metadata on output literals.

SecretsManager([secrets_cfg])

This provides a secrets resolution logic at runtime. The resolution order is - Try env var first. The env var should have the configuration.SECRETS_ENV_PREFIX. The env var will be all upper cased - If not then try the file where the name matches lower case configuration.SECRETS_DEFAULT_DIR/<group>/configuration.SECRETS_FILE_PREFIX<key>.

SerializableToString(*args, **kwargs)

This protocol is used by the Artifact create_from function.