docker_check icon indicating copy to clipboard operation
docker_check copied to clipboard

setDaemon method deprecated in Python 3.10

Open XMaarten opened this issue 1 year ago • 2 comments

The script is generating a deprecated warning.

I think this: worker.setDaemon(True) needs to be changed to this: worker.demon = True

XMaarten avatar Jan 08 '24 23:01 XMaarten

Hello,

Thanks for reporting this. I'll check that A.S.A.P.

I didn't use this script for more than 2 years (much more in prod env)..

I was wondering if it's still relevent.. How/Why do you use this script instead of something else?

elacheche avatar Jan 18 '24 11:01 elacheche

I have been using it for a couple of years, didn't have any issues with it. Do you have recommendations on alternatives? Your script is easily found through https://exchange.icinga.com/elacheche/Docker%20containers%20check

XMaarten avatar Jan 19 '24 18:01 XMaarten