Skip to content
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

Configurable chunker #166

Draft
wants to merge 21 commits into
base: 1.x
Choose a base branch
from
Draft

Conversation

malarzm
Copy link

@malarzm malarzm commented May 18, 2022

This PR build on #164 (hence many commits) and implements my comment #164 (comment) (the last commit). During development I've realized what really " it would also be hard to find an easy extension point to attach to..." meant :) I decided to just abstract away the array_chunk from Runner and make it technically possible to change the implementation (not to say it's easy or anything).

Sidenote: turned out that in our project we're already doing some funky stuff to have a custom printer, that involves overriding some of Paraunit's classes to finally hook into what \Paraunit\Configuration\DependencyInjection\ParallelContainerDefinition is doing. With this inelegant hack I was able to wire my own chunker though :)

Is such approach OK for you? Maybe you have a vision on how to interfere with Paraunit's DI container in a cleaner way? Anyway let me know, maybe I'll be able to help with something.

@Jean85 Jean85 marked this pull request as draft May 19, 2022 07:43
@Jean85
Copy link
Member

Jean85 commented May 19, 2022

Is such approach OK for you? Maybe you have a vision on how to interfere with Paraunit's DI container in a cleaner way? Anyway let me know, maybe I'll be able to help with something.

That's the hard part I was talking about. The DI of Paraunit is nowhere accessible from your app: you have to find an input point in the configuration or the CLI options somewhere, so I can't think of an easy way in...

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.

3 participants