fix(ingest): support async_flag properly in ingestProposalBatch (#12332)

This commit is contained in:
Harshal Sheth 2025-01-13 21:41:51 -08:00 committed by GitHub
parent ddd0d21bf9
commit e1532a7f51
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -374,7 +374,7 @@ class DataHubRestEmitter(Closeable, Emitter):
# 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"
payload = json.dumps(payload_dict)
self._emit_generic(url, payload)