The American jobs engine has been beaten and battered, but it just keeps chugging along.

Employers added 128,000 jobs in October, the Labor Department said Friday, and revisions to prior months’ data tacked on another 95,000. The figures for October would have been stronger had it not been for the strike at General Motors, which shaved close to 50,000 workers from the employment rolls, and for the layoff of some 20,000 temporary census workers.

The unemployment rate ticked up to 3.6 percent, still near a half-century low. Stocks rose Friday after the report reassured investors about the health of the economy, with the S&P 500 reaching a record high.

All told, the report and other recent data paint a picture of a job market that is weathering the storm of trade tensions and a cooling global economy. The manufacturing sector is in a slump, business investment is falling, and overall economic growth has slowed this year. But consumers are still spending, employers are still hiring, and fears of an imminent recession, which reached a fever pitch over the summer, have quieted for now.

“It helps reduce the concern that the slowdown was becoming more broad-based and recession risks were right around the corner,” said Michael Gapen, chief United States economist for Barclays . “I think most people have a slightly more positive view of the U.S. economy now than even two or three weeks ago.”