Atlantis: Ability to cancel an apply

Created on 17 Jul 2018  路  6Comments  路  Source: runatlantis/atlantis

This feature would enable users to SIGKILL a running apply. This could be added to the apply output page described in https://github.com/runatlantis/atlantis/issues/185 or via a comment.

feature

Most helpful comment

Ya this is crucial to be able to stop something (such as destroying resources) if an issue was not caught during the plan/review phase.

All 6 comments

Ya this is crucial to be able to stop something (such as destroying resources) if an issue was not caught during the plan/review phase.

On a similar note, it'd be nice to be able to cancel a running plan. For example, sometimes the automatic plan of a large amount of resources kicks off, but we really want to do a plan with a -target flag.

@bljordan #305 is also related to what your asking for.

What would happen today if I clicked "discard plan & unlock" in the web UI while running an apply job?

What would happen today if I clicked "discard plan & unlock" in the web UI while running an apply job?

I'm not 100% sure but I know it wouldn't kill the running tf process. It should fail because there's locks on the directories when they're in use but I haven't tested it.

What would happen today if I clicked "discard plan & unlock" in the web UI while running an apply job?

I'm not 100% sure but I know it wouldn't kill the running tf process. It should fail because there's locks on the directories when they're in use but I haven't tested it.

I just did that.. and it seems like the "unlock" works and the plan is discarded.
But it is not possible to run a new plan due to "workspace currently locked" (by the apply I assume)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timoguin picture timoguin  路  6Comments

gaahrdner picture gaahrdner  路  3Comments

teosoft123 picture teosoft123  路  5Comments

richstokes picture richstokes  路  3Comments

mcdafydd picture mcdafydd  路  4Comments