How to gracefully stop a worker

Hi everyone.

Is there any way to gracefully stop a worker? Ideally I would like for a worker to stop pulling new flow runs, but still monitor any running runs until they complete. This would allow me to make a no donwtime update of the worker image on a kubernetes workload.

Thanks