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 ability to set expiration time of headless pods or extend expiration time after launching #428

Open
aaronpearlman opened this issue Jan 19, 2023 · 1 comment

Comments

@aaronpearlman
Copy link

It would be useful to have the ability, both at launch time or after a pod has been launched, to extend the expiration time of a headless pod.

The science portal now provides users with the ability to do this for desktop/notebook sessions. A command-line tool, or an interface to extend headless sessions (e.g., in the Science Portal), would be extremely helpful.

Currently, some of my headless pods require a bit longer than 2 weeks to complete, but the headless sessions expire and are killed before they can finish.

@brianmajor
Copy link
Member

Hi Aaron (and Wes),

I think you can do that now. The command would be an HTTP POST to /session/<sessionid> with payload param action=renew. For example, with curl:

curl -E <mycert.pem> https://ws-uv.canfar.net/skaha/session/<sessionid> -d "action=renew"

I haven't tested this myself, but if you find it doesn't work please let us know. It will add the default expiry time to the session lifetime.

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

2 participants