Preview Flyte 2 for productionHosted on Union.ai
Human-in-the-Loop (HITL)

Human-in-the-Loop (HITL)

flyteplugins-hitl

Flyte SDK (v2)Developer Toolshitl

Human-in-the-Loop (HITL) plugin for Flyte. This plugin provides an event-based API for pausing workflows and waiting for human input.

Install
pip install flyteplugins-hitl

Quick Start(example, may need adjustment)

pip install flyteplugins-hitl

from flytekit import task, workflow
from flyteplugins.hitl import Event, EventScope, event_task_env, new_event

@task
def my_task() -> None:
    event_task_env(...)

@workflow
def my_workflow() -> None:
    my_task()

Available Imports (4)

configEvent

An event that waits for human input via an embedded FastAPI app.

extends dataclass — configuration or data structure for plugin setup

from flyteplugins.hitl import Event

typeEventScope

Configuration type for Human-in-the-Loop (HITL).

from flyteplugins.hitl import EventScope

taskevent_task_env

Task for Human-in-the-Loop (HITL).

from flyteplugins.hitl import event_task_env

tasknew_event

Task for Human-in-the-Loop (HITL).

from flyteplugins.hitl import new_event

Dependencies

fastapiuvicornpython-multipartaiofiles

Related Plugins

Package Info

Min Flyte SDK
Modules4

Downloads

Last day57
Last week262
Last month433

Contributors