SDPIII-51 changes for pushing ticket query in delayed_job