SEATTLE >> Factory workers at Boeing have voted to accept a contract offer and end their strike after more than seven weeks, clearing the way for the company to restart idled Pacific Northwest assembly lines.

But the strike was just one of many challenges the troubled U.S. aerospace giant faces as it works to return to profitability and regain public confidence.

Boeing’s 33,000 striking machinists disbanded their picket lines late Monday after leaders of the International Association of Machinists and Aerospace Workers district in Seattle said 59% of union members who cast ballots agreed to approve the company’s fourth formal offer, which included a 38% wage increase over four years.

Union machinists assemble the 737 Max, Boeing’s bestselling airliner, along with the 777 or “triple-seven” jet and the 767 cargo plane at factories in Renton and Everett, Washington. Resuming production will allow Boeing to generate much-needed cash, which it has been bleeding.

“Even for a company the size of Boeing, it is a life-threatening problem,” said Gautam Mukunda, lecturer at the Yale School of Management.

The union said its workers can return to work as soon as Wednesday or as late as Nov. 12. Boeing CEO Kelly Ortberg has said it might take “a couple of weeks” to resume production in part because some workers might need retraining.

As the machinists get back to work, management will have to address a host of other problems. The company needs to get on better financial footing. While doing so, it also needs to prioritize the quality of its workmanship and its relationships with employees and suppliers, analysts said.

Boeing has been managing itself to meet short-term profit goals and “squeezing every stakeholder, squeezing every employee, every supplier to the point of failure in order in order to maximize their short-term financial performance,” Mukunda said. “That is bad enough if you run a clothing company. It is unacceptable when you are building the most complex mass-produced machines human beings have ever built.”

Above all, Boeing needs to produce more planes. When workers are back and production resumes, the company will be producing about 30 737s a month, and “they must get that number over 50. They have to do it. And the people who are going to do that are the workers on the factory floor,” Mukunda said.

Another challenge will be getting the company’s fragile supply chain running again, said Cai von Rumohr, an aviation analyst at financial services firm TD Cowen. Suppliers working ahead of Boeing’s schedule when the strike began may have had to lay workers off or finance operations on their own.

“There are lots of nasty questions in terms of complexities that go into revamping the supply chain,” he said.

One way Boeing could generate cash would be to sell companies that don’t fit directly in the business, such as flight information provider Jeppesen Sanderson, which it bought in 2000 for $1.5 billion, von Rumohr said.

“They’d lose some earnings but they’d get a lot of cash to reduce their debt,” he added. “They really need to get to a more stable position where they have a solid credit rating.”

Ortberg acknowledged the challenges ahead in a message to employees after they voted to end the walkout.

“There is much work ahead to return to the excellence that made Boeing an iconic company,” he said.

The average annual pay of Boeing machinists is $75,608 and eventually will rise to $119,309 under the new contract, according to the company. The union said the compounded value of the promised pay raise would amount to an increase of more than 43% over the life of the agreement.

Reactions were mixed even among union members who voted to accept the contract.

Although she voted “yes,” Seattle-based calibration specialist Eep Bolaño said the outcome was “most certainly not a victory.” Bolaño said she and her fellow workers made a wise but infuriating choice to accept the offer.

“Us as one of the biggest unions in the country couldn’t even extract two-thirds of our demands from them. This is humiliating,” she said.