MCPcopy Create free account
hub / github.com/graphql-python/graphene / failed_dispatch

Function failed_dispatch

graphene/utils/dataloader.py:273–280  ·  view source on GitHub ↗

Do not cache individual loads if the entire batch dispatch fails, but still reject each request so they do not hang.

(loader, queue, error)

Source from the content-addressed store, hash-verified

271
272
273def failed_dispatch(loader, queue, error):
274 """
275 Do not cache individual loads if the entire batch dispatch fails,
276 but still reject each request so they do not hang.
277 """
278 for loaded in queue:
279 loader.clear(loaded.key)
280 loaded.future.set_exception(error)

Callers 1

dispatch_queue_batchFunction · 0.85

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected