nvflare.app_common.resource_consumers.passthrough_resource_consumer module

class PassthroughResourceConsumer[source]

Bases: ResourceConsumerSpec

A passthrough resource consumer that accepts any resource allocation without action.

This implementation of ResourceConsumerSpec is a no-op consumer intended for use in environments where resource consumption tracking is not required or is handled externally. It silently accepts the provided resources and takes no further action.

consume(resources: dict)[source]

Consumes the given resources without performing any action.

Parameters:

resources – a dict of allocated resources to consume.