-
Notifications
You must be signed in to change notification settings - Fork 638
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
Prepare Nextflow for the CWS Plugin #3727
Conversation
Signed-off-by: Lehmann_Fabian <[email protected]>
Signed-off-by: Lehmann_Fabian <[email protected]>
Signed-off-by: Lehmann_Fabian <[email protected]>
Signed-off-by: Lehmann_Fabian <[email protected]>
These are all small changes. However, the side effect of them, internal APIs will be made accessible to components that are not meant to consume them (especially plugins). What's the value for the scheduling sub-system to access rateLimiter or K8s client error code (and not other executor errors)? As a side thought, maybe that information should be accessed with a dedicated API extension |
Thanks for your feedback. Let me explain why I think the following changes are the right way to go. ErrorCode: So it is up to you. If you decline the changes, I will work around it to get my plugin working anyway, but having the changes will prevent me from using redundant values or reflections and String parsing. |
0d59b4c
to
b93634e
Compare
I see, but using this approach, CWS is strictly coupled with the nextflow implementation. I believe the CWS scheduler should manage the batching independently on the workflow engine. Don't you agree? The same for the K8s error code |
I got your point, and I have an idea of how to avoid copying the code of the TaskPollingMonitor. The error code is not used for anything scheduling-specific. But as Nextflow is built around the paradigm "Do not install anything," I start the scheduler if necessary at runtime, and there I want to catch more details about the problems. Here, I don't see that I couple to close on Nextflow, but this is definitely an unimportant aspect of my CWS Plugin. I removed both changes from this PR so that you can merge it, and I can publish the Plugin soon. |
Signed-off-by: Lehmann_Fabian <[email protected]>
I have further reduced the PR. Now there are only three unavoidable changes. |
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.
It seems reasonable.
Thanks for merging. I'll publish the plugin later today. |
You are welcome |
Signed-off-by: Lehmann_Fabian <[email protected]>
This PR is necessary to publish my CWS Plugin finally. The plugin is finished, and you find it here.
In the
K8sResponseException
, I introduce a new field to store the error code.For GroupKey, I need to get the target to submit all input data to the scheduler.
Besides that, all changes are only about access modifiers to allow inheriting classes access to required fields.
None of the changes influences the current Nextflow behavior or features. Nor are there any side effects.