Pic related recently came out and it provides a coherent explanation of the technological contradictions in capitalism.
Essentially, automation will continue until a point of unsustainable unemployment which will require a reorganization of the economic system. The problem is that the likely result, if nothing is done to prevent it, is the division of society into "The Gods and The Useless." It's entirely possible that the capitalist class owning the productive forces at this point would realize that they no longer need the rest of society. They then could either abandon us entirely, or begin a genocide of the useless.
Automation has the potential to completely crush the power of labor and eliminate swaths of the already dwindling working class into a 'useless' class of permanently unemployed people and render socialism an impossible prospect. Communism will emerge in this case, but it is going to be the victory of the bourgeoisie, not the proletariat.
The next 20 years or so of automation are going to be the critical period, we ought to focus on ensuring the public oversight of these machines and on establishing a UBI to stave off increasing inequality.
Perhaps a violent revolution would still be possible after the automation of much of the workforce, but what's going to happen when the bourgeois start augmenting themselves and becoming cyborgs?
It's absolutely imperative that we focus on getting a grip on technology, and holding on as tight as we can to that, ensuring that it benefits everyone. If society does get divided between The Gods and The Useless, socialism is finished.