[api] fix failures of rake cron jobs (eg. updateissues)