Skip to content

Commit

Permalink
Runner should be removed before termination (machulav#161)
Browse files Browse the repository at this point in the history
The EC2 instance should be marked as unschedulable by Github Actions
before termination to make sure that Github Actions dosen't schedule any
jobs to it while it's being terminated.

machulav#161
  • Loading branch information
garbas committed Oct 10, 2023
1 parent 67a0119 commit f8fe7f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ async function start() {
}

async function stop() {
await aws.terminateEc2Instance();
await gh.removeRunner();
await aws.terminateEc2Instance();
}

(async function () {
Expand Down

0 comments on commit f8fe7f5

Please sign in to comment.