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

add entrypoint to cluster config #61

Closed
wants to merge 3 commits into from
Closed

Conversation

faucct
Copy link
Collaborator

@faucct faucct commented Dec 31, 2024

No description provided.

@@ -161,6 +162,8 @@ def _launcher_command(component: str, common_params: CommonSpecParams, additiona
additional_parameters)

java_bin = os.path.join(common_params.java_home, 'bin', 'java')
if command := getitem(common_params.task_spec, 'command'):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Where is getitem method defined?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I've meant to write common_params.task_spec.get('command').

@@ -161,6 +162,8 @@ def _launcher_command(component: str, common_params: CommonSpecParams, additiona
additional_parameters)

java_bin = os.path.join(common_params.java_home, 'bin', 'java')
if command := getitem(common_params.task_spec, 'command'):
java_bin = f'{command} {java_bin}'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is custom command prepended to java_bin? I think we should explicitly add some command separators like && in this case here.

Copy link
Collaborator Author

@faucct faucct Jan 10, 2025

Choose a reason for hiding this comment

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

Yes, it is being prepended, not just run before, as it is an entrypoint, so && won't work here.

@faucct faucct requested a review from alextokarew January 10, 2025 16:37
Copy link

robot-magpie bot commented Jan 10, 2025

@alextokarew has imported your pull request. If you are a Yandex employee, you can view this diff.

Copy link

robot-magpie bot commented Jan 11, 2025

✅ This pull request is being closed because it has been successfully merged into our internal monorepository.
Your changes will be pushed to this repository soon. Thank you for your contribution!

@robot-magpie robot-magpie bot closed this Jan 11, 2025
robot-piglet pushed a commit that referenced this pull request Jan 11, 2025
No description

---

Pull Request resolved: #61
commit_hash:e13c0cdb850f48b7e42d9630528d0017413b07b0
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