D
Dokploy10mo ago
Igor

Healthcheck internval issue ?

I'm attempting to set an interval for my app, but the deployment fails with the error '(HTTP code 400) unexpected - rpc error: code = InvalidArgument desc = ContainerSpec: Interval in HealthConfig cannot be less than 1ms'. My current setting is: { "Interval": 30000 }
3 Replies
Siumauricio
Siumauricio10mo ago
I will try to review, thanks
wyze
wyze9mo ago
i had the same issue, probably need to do a conversion. using the current setup it needs the number in nanoseconds. e.g, i wanted a 5m interval so i did 5 * 60 * 1000 * 1000 to get the correct number, and it was no longer giving an error
Siumauricio
Siumauricio9mo ago
Thanks!

Did you find this page helpful?