I’m getting a lot of email job failures, when I check the logs in Sidekiq, I can see that they’re related to a user with ID 2. The failures are on this form:
Jobs::HandledExceptionWrapper: Wrapped NoMethodError: undefined method `email' for nil:NilClass
I think the user with ID 2 was created by accident through logging on with SSO using the wrong email address, and I since cleaned it out. I guess that user ID is somehow still lingering in parts of the system? How can I verify that these issues are indeed relating to a non-existent user, and if so get rid of it?