Commit fe5e4f7
committed
Rearrange the cleanup handling
This patch moves the INT trap above the system provisioning as well as
wrapping the call to `provision` in a rescue block that will avoid
further execution.
This should fix the issue where container and local VM tests continue to
try and run the `provision` stage in the background even if the user
wants to cancel all jobs.
Cloud providers may need to address the issue in their `cleanup` method
specifically.1 parent 800e8bc commit fe5e4f7
1 file changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 50 | | |
54 | 51 | | |
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
58 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
59 | 68 | | |
60 | 69 | | |
61 | 70 | | |
| |||
0 commit comments