simple-salesforce-mdapi-sync-must-wrap-asyncio-to-thread
All conn.mdapi.* calls in simple-salesforce are synchronous and block the asyncio event loop when called directly inside async functions. Every mdapi call (create, update, delete, deploy, retrieve, etc.) must be wrapped with asyncio.to_thread(conn.mdapi.<method>, ...). 23 violations were found across metadata, security, integration, and utilities modules.
Related
- simple-salesforce-mdapi-sync-calls-need-asyncio-to-thread
- mdapi-sync-calls-in-async-functions-require-asyncio-to-threa
- salesforce-mcp-mdapi-calls-must-be-async-wrapped
- mdapi-sync-calls-require-asyncio-to-thread-wrapping
- salesforce
- salesforce-mcp-23-mdapi-calls-missing-asyncio-to-thread
- mdapi-sync-calls-in-async-context-require-asyncio-to-thread
- salesforce-mcp-23-sync-mdapi-calls-in-async-context-law3-vio
- all-mdapi-sync-calls-must-wrap-asyncio-to-thread
- all-simple-salesforce-mdapi-sync-calls-must-use-asyncio-to-t
- sfdc-mdapi-async-wrapping-law3-requirement