请教一下,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删的,理论上是可以删干净。