Add resque env task to v2 scheduler code