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

Adding custom button to job card to run script #2972

Closed
miesav opened this issue Aug 17, 2023 · 4 comments
Closed

Adding custom button to job card to run script #2972

miesav opened this issue Aug 17, 2023 · 4 comments
Milestone

Comments

@miesav
Copy link

miesav commented Aug 17, 2023

Hi team,

One of our apps will most likely require a custom button added to the session card. The button has to execute a remote command through ssh on the node the job is running. I see custom html can be added to view.html.erb, was just wondering what would be the easiest way to accomplish this? Possibly with a js script?

Kind regards.

@osc-bot osc-bot added this to the Backlog milestone Aug 17, 2023
@johrstrom
Copy link
Contributor

I don't think what you're asking is possible.

Can you explain what the remote command does? There could be another facility to accomplish what you want, depending on what this command does and/or what side effects you want from it.

@miesav
Copy link
Author

miesav commented Aug 17, 2023

Didn't think so but worth the try. The command has to send SIGUSR1 to a PID contained in a specific pidfile created with script.sh.

@johrstrom
Copy link
Contributor

OK yea there's no way to do that outside of the script.sh or after.sh.

@miesav
Copy link
Author

miesav commented Aug 20, 2023

Thank you Jeff, ended up implementing through the deployed app itself.

@miesav miesav closed this as completed Aug 20, 2023
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

No branches or pull requests

3 participants