Error Handling Options in Go — An example of a Robot Pizza Shop

An ordinary error. Photo by Sarah Kilian on Unsplash


Recently I was working on refactoring and developing a long-running worker application written in Go. It will basically loop over a task list and do something. But I found out that the main process will panic and exit if one task encounter some unexpected failure. This is not acceptable because the tasks after the failed one would never…