MetaBase timeout config not working

Hi I've configured metabase timeout and the command is export MB_DB_QUERY_TIMEOUT_MINUTES= 5 but my MySQL query is still going for 20 to 30 min without getting timed out. What is the best configuration for that?