If I face such scenario, I would use the Resource Manager to create a new Plan and a Rule to configure the Query Timeout using the parameter “**Stop query when the maximum execution time has been reached**”. This parameter stops the query once the maximum execution time configured, has been reached and this applies to all the queries that are being executed against the particular Virtual DataPort Server.
Also, this property overrides the Query timeout configured in the “**Tools > Admin Tool Preferences > Connection > Query timeout**”.
For more information, you could refer to the **[Resource Manager](https://community.denodo.com/docs/html/browse/8.0/en/vdp/administration/resource_manager/resource_manager#resource-manager)** section of the Virtual DataPort Administration Guide.
Hope this helps!