You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deregister Runner Application when Spot Interruption signal is received #804
Reacted by Niek Palm, Sindri Guðmundsson, Lasse Steffen, Gautam krishna R, Marius Filipowski, Lars Meynberg, Ted O'Connor, Loren, Laurenz and James Crowley
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
Ideally it would wait until a job is finished, if it currently runs one. Of course it would be difficult to predict when a certain job is expected to finish, so it would be enough to wait for a reasonable amount of time (which would be before the end of the termination timestamp that was given by the notice) so that a job has more chances on finishing.
These would hopefully minimize the runners being shut down while running a job.
What do you think?
When I understand this correctly part of this module could be a connection to the SNS topic and listen for these events. And then shutdown the runner using the normal shutdown runner.
We went months with only getting a handful of evictions. So it was definitely worth rerunning a couple jobs to get that huge spot instance savings. However over the last month or so the evictions have increased significantly to the point where we are considering other options. I think this feature would help a lot.
These are just some of our evictions in the last 30 minutes. They are becoming more the norm than exception.
Reacted by Loren, Austen Constable, Richard Vodden, Marian Bazalik and Van Nguyen
Activity
github-actions commentedon Jun 2, 2022
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
dimisjim commentedon Jun 2, 2022
Any news regarding this?
github-actions commentedon Jul 3, 2022
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
dimisjim commentedon Jul 3, 2022
bump
ScottGuymer commentedon Jul 14, 2022
Hi
Do you have any thoughts on how you might see this working?
dimisjim commentedon Jul 20, 2022
Hi @ScottGuymer ,
yeah, one idea would be to install a cron inside the runners that checks regularly for spot interruption notices (see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-instance-termination-notices.html), then it would deregister itself from the available pool of runners, or via a lambda that would be delegated to perform this action.
Ideally it would wait until a job is finished, if it currently runs one. Of course it would be difficult to predict when a certain job is expected to finish, so it would be enough to wait for a reasonable amount of time (which would be before the end of the termination timestamp that was given by the notice) so that a job has more chances on finishing.
These would hopefully minimize the runners being shut down while running a job.
What do you think?
lmeynberg commentedon Aug 4, 2022
When I understand this correctly part of this module could be a connection to the SNS topic and listen for these events. And then shutdown the runner using the normal shutdown runner.
tedparagon commentedon May 4, 2023
We went months with only getting a handful of evictions. So it was definitely worth rerunning a couple jobs to get that huge spot instance savings. However over the last month or so the evictions have increased significantly to the point where we are considering other options. I think this feature would help a lot.
These are just some of our evictions in the last 30 minutes. They are becoming more the norm than exception.

npalm commentedon Mar 13, 2024
In PR #3789 we adding a first step to handle spot termination events.
npalm commentedon Jan 17, 2025
This should now be possible to implement with the spot termination watcher.
feat(termination-watcher): deregister runners from GitHub on EC2 term…