SDPIII-51 changes to move ticket queries inside delayed jobs