Skip to content

Allow setting custom query size limit NET-254#93

Open
kalabukdima wants to merge 1 commit intomasterfrom
query-size-limit
Open

Allow setting custom query size limit NET-254#93
kalabukdima wants to merge 1 commit intomasterfrom
query-size-limit

Conversation

@kalabukdima
Copy link
Copy Markdown
Contributor

@kalabukdima kalabukdima commented Apr 6, 2026

Adds two config params:

  • query_size_limit — the default one stays at 256kb
  • ignore_deprecated_workers — avoids using deprecated worker versions

Adds two config params:
- query_size_limit — the default one stays at 256kb
- ignore_deprecated_workers — avoids using deprecated worker versions
@kalabukdima kalabukdima requested a review from denisbsu April 6, 2026 09:59
&config.assignments_url,
config.priorities.clone(),
);
if config.ignore_deprecated_workers {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not to pass it in constructor?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The whole config doesn't split nicely without cloning, and passing this field alone increases the number of parameters in the constructor for almost no reason. Functions should accept no more than 2-3 arguments, so its limit is already reached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants