Add code that is run locally to queue workers