Skip to content

Commit

Permalink
Limit the number of nodes passed to graphql
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardsegarra committed May 24, 2024
1 parent 1d211d4 commit 3e1ca3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/query_graphql.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def query_jobs(node_id_list: List[str]):
}
"""
)
params = {"node_id_list": node_id_list}
params = {
"node_id_list": node_id_list[:100]
} # Get only the 100 first, the others will be processed on next iterations

return client.execute(query, variable_values=params)

0 comments on commit 3e1ca3c

Please sign in to comment.