请教一下,sidekiq 信息里出现大量失败任务:
ActiveRecord::RecordNotFound: Couldn't find Account with 'id'=-99
是怎么回事……
我好像在 postgresql 里手动删了 id 为 -99 的帐号,大概和这个有关?有办法回复吗?🤦🏼♂️
@dimlau RAILS_ENV=production bundle exec rails c
> Account.where(domain: nil, id: -99).destroy_all
@dimlau 不太清楚你之前是怎么删的,是不是自己打的SQL命令,如果是的话应该就是没彻底。这个是通过rails 的account controller删的,理论上是可以删干净。
@mashiro 至于这个账号的作用,妳可以看看这里:
@dimlau 哈原来如此,确实删不得
@mashiro 之前删掉之后访问过这个账号页面。
其他不存在的账号是一个大象图片底下一句话类似「The page you are looking for isn't here.」
而删掉之后,这个账号页面会显示源码。