Skip to content

Commit 1e7fec4

Browse files
authored
feat(cli): Make ingest deploy create recipe with urn if not exists (datahub-project#10724)
1 parent 2d727a9 commit 1e7fec4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

metadata-ingestion/src/datahub/cli/ingest_cli.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ async def run_ingestion_and_check_upgrade() -> int:
224224
@click.option(
225225
"--urn",
226226
type=str,
227-
help="Urn of recipe to update",
227+
help="Urn of recipe to update. Creates recipe if provided urn does not exist",
228228
required=False,
229229
)
230230
@click.option(
@@ -293,10 +293,6 @@ def deploy(
293293
variables["schedule"] = {"interval": schedule, "timezone": time_zone}
294294

295295
if urn:
296-
if not datahub_graph.exists(urn):
297-
logger.error(f"Could not find recipe for provided urn: {urn}")
298-
exit()
299-
logger.info("Found recipe URN, will update recipe.")
300296

301297
graphql_query: str = textwrap.dedent(
302298
"""

0 commit comments

Comments
 (0)