You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
AsyncExecutor.create_record takes no error callback, so a rejected record is lost unless on_error is set #14
AsyncExecutor.create_record(document, callback=None) has no way to hear about a record the engine rejects (a duplicate key under a UNIQUE index, for example): the failure goes only to the executor-wide on_error handler, and without one it is logged and the record is gone. The engine has the overload for it, DatabaseAsyncExecutor.createRecord(record, newRecordCallback, errorCallback), and insert_many(parallel=True) already uses it to raise instead of dropping records (BUGS-style fix in 4685ba00f5).
Proposed: create_record(document, callback=None, error_callback=None), where error_callback receives the exception for that record, through the three-argument overload. Additive; existing calls are unchanged.
Activity
bindings: AsyncExecutor.create_record takes an error_callback for a r…