Flyte does not natively support human-in-the-loop (HITL) tasks as a first-class feature, but you can implement HITL patterns using workarounds. One common approach is to split your workflow into two parts: run the automated portion as one workflow, then pause for human input (outside Flyte), and resume with a second workflow after the human step is complete. Alternatively, you can use a custom Flytekit plugin or sensor task that waits for an external event (such as a file appearing in S3 or a database update) to simulate a manual approval or input step. However, there is no built-in @asynchronous_task or wait-for-human-input decorator in Flyte as of now, and all such solutions require external coordination or custom plugin development. See the discussion and solutions in
Flyte GitHub Issue #208.
Would you like more detail on implementing a sensor-based or plugin-based approach for HITL in Flyte?
Sources:
-
Flyte GitHub Issue #208 👍 0 button 👎 0 button 💡
Hint: Mention @runllm in the thread for followups.