Skip to content

Commit

Permalink
feat(cli): fix upload ingest cli endpoint (datahub-project#8826)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro93 authored Sep 12, 2023
1 parent 449cc9b commit 138f6c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion metadata-ingestion/src/datahub/cli/ingest_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,14 @@ def deploy(
"urn": urn,
"name": name,
"type": pipeline_config["source"]["type"],
"schedule": {"interval": schedule, "timezone": time_zone},
"recipe": json.dumps(pipeline_config),
"executorId": executor_id,
"version": cli_version,
}

if schedule is not None:
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}")
Expand Down Expand Up @@ -331,6 +333,7 @@ def deploy(
$version: String) {
createIngestionSource(input: {
name: $name,
type: $type,
schedule: $schedule,
config: {
Expand Down

0 comments on commit 138f6c0

Please sign in to comment.