fixed delayed job error for query execution