Is there any way to effectively "drain" an agent instance?

We’re currently running Drone 0.8.4 in an AWS environment and it’s working very well for the most part. However I’ve needed to recycle/remove agent instances for various reasons and found that it would be very nice to be able to allow the instance to finish current tasks without accepting new ones, before I remove it. Is there any way to accomplish this?

1 Like

Have you considered using https://github.com/drone/autoscaler ?

I didn’t know that existed - will take a look. Thanks.