This creates an intractable problem when their job is deemed too dangerous for a civilization to allow to continue.
If someone's job is their identity, and their job harms others, what are some other possible solutions? (Retraining runs into similar issues as you mentioned -- coal miners don't want to become keyboard jockeys, they want their sense of pride and self worth for doing the profession they trained for.)