mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-10 08:21:21 +00:00
fix(ingest): support async_flag properly in ingestProposalBatch (#12332)
This commit is contained in:
parent
ddd0d21bf9
commit
e1532a7f51
@ -374,7 +374,7 @@ class DataHubRestEmitter(Closeable, Emitter):
|
|||||||
# the size when chunking, and again for the actual request.
|
# the size when chunking, and again for the actual request.
|
||||||
payload_dict: dict = {"proposals": mcp_obj_chunk}
|
payload_dict: dict = {"proposals": mcp_obj_chunk}
|
||||||
if async_flag is not None:
|
if async_flag is not None:
|
||||||
payload_dict["async"] = True if async_flag else False
|
payload_dict["async"] = "true" if async_flag else "false"
|
||||||
|
|
||||||
payload = json.dumps(payload_dict)
|
payload = json.dumps(payload_dict)
|
||||||
self._emit_generic(url, payload)
|
self._emit_generic(url, payload)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user