Signals
Signals for proxy app.
- smarter.apps.proxy.signals.broker_ready = <django.dispatch.dispatcher.Signal object>
Sent when a Proxy broker is ready.
Arguments:
broker.
- smarter.apps.proxy.signals.proxy_request_completed = <django.dispatch.dispatcher.Signal object>
Sent when the provider has responded to a request that a Proxy forwarded, whatever its status.
For a stream, it is sent when the stream ends. Arguments:
proxy,user_profile,method,path,status,usage(aUsage, orNone) andelapsed(seconds).
- smarter.apps.proxy.signals.proxy_request_failed = <django.dispatch.dispatcher.Signal object>
Sent when a Proxy refuses a request, or cannot reach the provider.
Arguments:
proxy,user_profile,method,path,error(aProxyError) andelapsed(seconds).
Receiver functions for proxy signals.
- smarter.apps.proxy.receivers.invalidate_proxy_caches(sender, instance, **kwargs)[source]
Invalidate the owner’s cached Proxy lists, which the web console’s list view uses.
- smarter.apps.proxy.receivers.log_broker_ready(sender, broker, **kwargs)[source]
Log when the broker is ready.