Fix pending_jobs for custom connections and bump to 0.3.1