Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Webhook storage (fixes #2835) #3000

Merged
merged 21 commits into from
Aug 4, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typos
  • Loading branch information
jameslamb committed Jul 20, 2020
commit 1a3b94d91a88a2d3968010600fe7ff5a05f28a7c
2 changes: 1 addition & 1 deletion docs/orchestration/execution/storage_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ from prefect.environments.storage import WebHook

flow = Flow(
"dropbox-flow",
storage=WebHoook(
storage=WebHook(
build_kwargs={
"url": "https://content.dropboxapi.com/2/files/upload",
"headers": {
Expand Down
6 changes: 3 additions & 3 deletions src/prefect/environments/storage/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class WebHook(Storage):
- build_secret_config (dict): A dictionary describing how to set
request headers from environment variables or Prefect Cloud
secrets. See example for details on specifying this. This config
applies to tthe request issued by `.build()`, and wiill also be
applies to the request issued by `.build()`, and will also be
used for `.get_flow()` unless you explicitly set
`get_flow_secret_config`.
- get_flow_kwargs (dict): Dictionary of keyword arguments to the
Expand Down Expand Up @@ -147,7 +147,7 @@ def get_flow(self, flow_location: str = "placeholder") -> "Flow":
"""
Get the flow from storage. This method will call
`cloudpickle.loads()` on the binary content of the flow, so it
shuould only be called in an environment with all of the flow's
should only be called in an environment with all of the flow's
dependencies.

Args:
Expand Down Expand Up @@ -296,7 +296,7 @@ def _render_headers(
) -> Dict[str, Any]:
"""
Given a dictionary of headers, add additional headers with values
resolved froom environment variables or Prefect Cloud secrets.
resolved from environment variables or Prefect Cloud secrets.

Args:
- headers (dict): A dictionary of headers.
Expand Down