add new preconditions for taskqueue