Skip to content

Commit

Permalink
Merge branch 'new-webhook' into add-httpx-in-flytekit-for-webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Future-Outlier committed Feb 27, 2025
2 parents 2ad2f28 + 75999fc commit 11cbaa3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flytekit/clis/sdk_in_container/serve.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ def agent(_: click.Context, port, prometheus_port, worker, timeout, modules):
"""
import asyncio

from flytekit.extras.webhook import WebhookTask # noqa: F401
try:
from flytekit.extras.webhook import WebhookTask # noqa: F401
except ImportError:
from flytekit import logger
logger.debug("Webhook is not installed. Please install it using `pip install flytekit[agent]`")

working_dir = os.getcwd()
if all(os.path.realpath(path) != working_dir for path in sys.path):
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,8 @@ extend-exclude = ["tests/", "**/tests/**"]
[tool.codespell]
ignore-words-list = "ot,te,raison,fo,lits,assertIn"
skip = "./docs/build,./.git,*.txt"

[project.optional-dependencies]
agent = [
"httpx",
]

0 comments on commit 11cbaa3

Please sign in to comment.