Question takes too long

Hi! Cant find a solution: How to resolve problem with questions that takes more than 10 minutes. I've already setup Postgres and Nginx timeout to 1800s and now get an error:
{
"message":"AsyncContext timeout",
"url":"/api/card/1/query",
"status":"500"
}

can you post diagnostic info, your architecture and also how you're calling Metabase? also post the backend logs