Ensure task can only be run in dev environemtn