With more modern databases, there are server-side resource constraints per bucket (query, connection, etc..). One of the resources is execution time that can be constrained. Sometimes it can even accept a hint, from the client, regarding the maximum runtime to enforce server-side.