pub async fn get_by_execution_chat_id<'a, E: Executor<'a, Database = Postgres>>( executor: E, company_id: i32, execution_chat_id: i32, ) -> Result<Task>
Get task by execution chat id.
Returns error if there was a problem while fetching task.