This is a ruby bug in the Queue class it seems, my first gut reaction here is to upgrade our dev image to 2.6.1
Can you report the full backtrace to the ruby issue tracker and link here?
Btw this code does not run in production so there is nothing mega urgent here
Maybe this?
@LeoMcA can you do a quick version check on your ruby in the image? What is it?