forked from RedHatCRE/cibyl
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
At the same way of get_deployment, we are doing one query for each job so if we have 2000 jobs then we have 2000 queries. As we can't send all the jobs to ask information of them in one single query because it's too big and it returns error, I've used chunks like: RedHatCRE#276 and we have reduced the time of the queries: From: INFO cibyl.orchestrator Took 551.80s to query system osp_jenkins using source: 'elasticsearch' of type: 'elasticsearch' using method get_builds To: INFO cibyl.orchestrator Took 117.57s to query system osp_jenkins using source elasticsearch of type elasticsearch using method get_builds
- Loading branch information
1 parent
d11aad4
commit cb93b6e
Showing
2 changed files
with
74 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters