Get request depth to avoid multiple notification creation

after the fix notification only generate when the request Depth is equal to 1.