Is there a way to set timeout for queries in Ratel?
Yes, in extra settings https://dgraph.io/docs/ratel/connection/#extra-settings