The task ran before the record existed
How you'll know: A task fails with "DoesNotExist" now and then, for an order or user that's clearly in the database when you look.
Fix: The task was queued inside a database transaction and a worker picked it up before the commit. Queue it with transaction.on_commit so it only goes out once the data is saved.