logoalt Hacker News

bandramitoday at 2:36 AM1 replyview on HN

Did that need to be 800 lines of Python, though, is the question


Replies

linsomniactoday at 5:36 AM

NEED to be? No.

But, to be robust you want a signal handler with clean shutdown, a circuit breaker, argument processing (100 lines right there), logging, reporting progress to our dashboard (it's going to run 10-15 days), checking errors and exceptions, retrying on temp fail, documentation... It adds up.

So it could be shorter, but it's not like there is anything superfluous in it.