Skip to content

Commit

Permalink
feat(cli): Make ingest deploy create recipe with urn if not exists (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro93 authored Jun 18, 2024
1 parent 2d727a9 commit 1e7fec4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions metadata-ingestion/src/datahub/cli/ingest_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ async def run_ingestion_and_check_upgrade() -> int:
@click.option(
"--urn",
type=str,
help="Urn of recipe to update",
help="Urn of recipe to update. Creates recipe if provided urn does not exist",
required=False,
)
@click.option(
Expand Down Expand Up @@ -293,10 +293,6 @@ def deploy(
variables["schedule"] = {"interval": schedule, "timezone": time_zone}

if urn:
if not datahub_graph.exists(urn):
logger.error(f"Could not find recipe for provided urn: {urn}")
exit()
logger.info("Found recipe URN, will update recipe.")

graphql_query: str = textwrap.dedent(
"""
Expand Down

0 comments on commit 1e7fec4

Please sign in to comment.