-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Batching job-submit tasks to avoid blocking Stdout/err pipes #2870
Conversation
196b987
to
a6ee1d6
Compare
|
Note you can get codacy to analyze your own fork. Also fine to put up a "work in progress" PR though (which we seem to be labeling with "WIP" now, following @kinow). |
Maybe add some debug output on the number of jobs submitted, e.g. "50 jobs submitted, batch 1/4", and search for that in test suite output. Maybe also make batch size a site config item, so we can scale it down for test suites. |
No, but there's several more specific utility modules (with "util" in their filenames). We don't generally bother unless/until functions are used in multiple places. |
(@hjoliver on WIP prefix, in GitLab WIP in the title locks the pull request (called merge request there). Quite handy, as one cannot merge by accident. Others have submitted a feature request already) |
(@kinow - that is a cool feature of GitLab). |
de128a2
to
e6ab1d3
Compare
We had a discussion about this: I wanted to make it a config item but other people were not so sure it was necessary. |
I pretty much got this response from @oliver-sanders review - alongside the suggestion that I collapse it into a generator comprehension for brevity. |
abdfe87
to
3390bad
Compare
Current State of Play with pull request:
I haven't made the batch size a config item. The consensus here seems to be that it isn't necessary. In addition, my experience of writing the test suggests that it may be a bad idea® to allow this to be set. Setting it very low can cause large overheads in terms of numbers of processes spawned. |
@matthewrmshin - If you are now happy with this I'll squash it down. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK. Please remove the debug echo from the test.
fixed the sorting of itasks so that it still works added a debug message for testing added a working test for debug output added a test made the chunks roughly even sizes and smaller than 100. squashlater:removed lines adding two lists that can be added in situ where they are used squashlater:move the debug msg outside for batch in batches loop
47e606a
to
5870bd8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good here.
Address part of #2857
Temporary PR to check fix on codacy.