Skip to content

Why is it necessary to tear down resources in the workflows? #66

Locked Answered by sleiner
devantler asked this question in Questions
Discussion options

You must be logged in to vote

I assumed that the worker is automatically killed/cleaned up after a run.

Your assumption is correct 😊 Still, there are a few reason I included it as a step:

  • At the end of the job, we are caching .vagrant.d/boxes (to avoid running into the rate limits of vagrantcloud.com by downloading to Ubuntu image to often). Even though I reckon that running VMs do not write to that directory, I wanted to make sure that there are no unforeseen side-effects there.
  • A proper teardown is something that should work. You can leave it out if your whole environment is teared down anyway, but especially when testing locally, it is important that a proper teardown works. So I regard the fact that it works a …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@devantler
Comment options

Answer selected by devantler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants