Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

If you cancel a job, the sauceconnect tunnel stays around #8

Open
d3ming opened this issue Sep 18, 2015 · 3 comments
Open

If you cancel a job, the sauceconnect tunnel stays around #8

d3ming opened this issue Sep 18, 2015 · 3 comments

Comments

@d3ming
Copy link

d3ming commented Sep 18, 2015

Is there a way to force the - killall --wait sc || true command to run at the end of a job? I'm finding that I'm leaking SC tunnels when jobs get cancelled so it never gets to the kill command after a tunnel was started

@bellkev
Copy link
Contributor

bellkev commented Sep 30, 2015

I'm afraid we don't have a step that runs post-cancellation. When I last played with this, it seemed like Sauce does "garbage collect" unused tunnels after a few minutes. Do you know if that is in fact the case or do they stay leaked indefinitely?

@d3ming
Copy link
Author

d3ming commented Sep 30, 2015

They leak for at least hours, not indefinitely I don't think but I had to close tunnels manually several times because we run out.

I noted this to CircleCI support as well but I think it would definitely be good to have a stage in the circle.yml file for teardown tasks that always run at the end

@bellkev
Copy link
Contributor

bellkev commented Oct 1, 2015

Yeah, that's definitely a reasonable request. I'll make sure it's on the list internally.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants