<#1187 rename events to conditions> Pull request o...
# flyte-github
a
#1187 rename events to conditions Pull request opened by cosmicBboy This pull request refactors the event-based workflow pausing mechanism to use the new "condition" terminology throughout the codebase and examples. The update includes renaming classes, functions, and variables from "event" to "condition", updating documentation and usage examples, and ensuring the new API is exposed at the package level. This improves clarity and aligns the API with its intended semantics. API and Core Functionality Updates: • Replaced all references to
EventWebhook
,
new_event
, and the
Event
class with
ConditionWebhook
,
new_condition
, and the
Condition
class, respectively, in both the implementation (
src/flyte/_condition.py
, previously
_event.py
) and the package exports (
src/flyte/__init__.py
). • Updated the controller interface and internal logic to use
register_condition
and
wait_for_condition
instead of their event-based counterparts. Documentation and Example Updates: • Renamed the advanced example file from
events.py
to
conditions.py
and updated all code, comments, and documentation within to use the new "condition" terminology, including function names, variable names, CLI instructions, and webhook payloads. These changes provide a more accurate and consistent API for pausing workflows based on external input, making the codebase easier to understand and maintain. flyteorg/flyte-sdk