EVG-16168 introduced a field to distinguish between host tasks and container tasks. Some of the existing task queries are only applicable to hosts, so they need to filter to ensure that the mode is host. For example, the host scheduler makes many queries that would only apply to tasks running in hosts. These should be updated to filter on host mode.
If necessary, build any required indexes to utilize the field.