Skip to content

Commit

Permalink
fix(ingest): support async_flag properly in ingestProposalBatch
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Jan 13, 2025
1 parent e34b2e4 commit 682a054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metadata-ingestion/src/datahub/emitter/rest_emitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def emit_mcps(
# the size when chunking, and again for the actual request.
payload_dict: dict = {"proposals": mcp_obj_chunk}
if async_flag is not None:
payload_dict["async"] = True if async_flag else False
payload_dict["async"] = "true" if async_flag else "false"

Check warning on line 377 in metadata-ingestion/src/datahub/emitter/rest_emitter.py

View check run for this annotation

Codecov / codecov/patch

metadata-ingestion/src/datahub/emitter/rest_emitter.py#L377

Added line #L377 was not covered by tests

payload = json.dumps(payload_dict)
self._emit_generic(url, payload)
Expand Down

0 comments on commit 682a054

Please sign in to comment.