Job queues, error handling, and exit codes. Oh my!

This post will talk about a pattern I started to use when working with an asynchronous job queue in PHP. During my time developing this pattern I went from initially using a typical Relational Database like MySQL to eventually converting the data storage to use a service like SQS. In any case the data storage mechanism is not pertinent to what I will be discussing. What is important is that the…