<#669 Add FlyteWebhookAppEnvironment to flyte.app....
# flyte-github
a
#669 Add FlyteWebhookAppEnvironment to flyte.app.extras Pull request opened by cosmicBboy This pull request introduces a new example for using the pre-built Flyte webhook environment, improves the FastAPI webhook example with modern HTTP client usage, and expands the exported symbols for webhook environments and endpoints. It also adds minor enhancements for app handles and remote app watching. New Example and Documentation: • Added a comprehensive example script
run_webhook_env.py
demonstrating how to use
FlyteWebhookAppEnvironment
with FastAPI endpoints for common Flyte operations, including authentication and task execution. FastAPI Webhook Example Improvements: • Updated the FastAPI webhook example (
run_webhook.py
→
run_webhook_fastapi.py
) to use
httpx
for HTTP requests instead of
urllib
, simplifying authentication and endpoint testing. [1] [2] • Updated dependencies to include
httpx
and bump Flyte version to
2.0.0b56
. Webhook Environment and Endpoint API Expansion: • Expanded the exports in
flyte.app.extras
to include
FlyteWebhookAppEnvironment
, webhook endpoint types, groups, and allowlist configuration, making it easier to use and customize webhook environments. API and Protocol Enhancements: • Added
url
property to the
AppHandle
protocol, clarifying app interface and endpoint access. Remote App Deployment Robustness: • Improved the remote app watcher to handle cases where deployment status conditions are missing, adding a sleep interval for robustness. [1] [2] [3] flyteorg/flyte-sdk