Skip to content
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions end_of_run_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def slack(func):
the flow. To keep the naming of workflows consistent, the name of this inner function had to match the expected name.
"""

def end_of_run_workflow(stop_doc, api_key=None):
def end_of_run_workflow(stop_doc, api_key=None, dry_run=False):
flow_run_name = FlowRunContext.get().flow_run.dict().get("name")

# Load slack credentials that are saved in Prefect.
Expand All @@ -52,7 +52,7 @@ def end_of_run_workflow(stop_doc, api_key=None):
)

try:
result = func(stop_doc)
result = func(stop_doc, api_key=api_key, dry_run=dry_run)

# Send a message to mon-prefect if flow-run is successful.
mon_prefect.notify(
Expand Down
Loading