Make the API call for delayed_job environment aware