query devices before poll the jobs, devices that are offline put them at the end for jobs to be checked if finished. [ci: models: avoid polling jobs waiting more than a week on the backend by chaws · Pull Request #1012 · Linaro/squad](https://github.com/Linaro/squad/pull/1012) Suggested by @roxell
query devices before poll the jobs, devices that are offline put them at the end for jobs to be checked if finished.
ci: models: avoid polling jobs waiting more than a week on the backend by chaws · Pull Request #1012 · Linaro/squad
Suggested by @roxell