Example of how to use an error queue with automated retry