Abstract queue workers for php