Many jobs will be safe for the foreseeable future. However, automation will eventually do away with many because machines are becoming ‘smarter’. News agencies already have AI systems that can write articles, even legal and finance jobs will be in danger. I don’t see total obsolescence but every field will narrow considerably in the next 20-30 years.
Or not. The vast majority of the work I did when I began my engineering career is now done by computers designed and programmed by engineers like me. The result is not less engineering jobs but far more. The reason is that since engineering services have become so much less expensive, the economy can now afford to buy so much more and engineers are working harder than ever.
The same's been the case throughout the entire economy as higher productivity drives down costs and demand soars.