def _deco(*args, **kwargs): request_started.send_robust(func) response = func(*args, **kwargs) request_finished.send_robust(func) return response