The global shipping industry is a ferociously competitive business, and the trans-Pacific route — from Asia to the West Coast seaports of the U.S. — is considered one of the most lucrative routes. Normally, cargo ships carrying everything from fruits and vegetables to cars and electronics can count on getting into a berth at one of the 29 West Coast seaports in a reasonable time.

Now it can take up to two weeks to berth the enormous cargo ships, thanks to contract disputes between the shipping lines and the union representing 20,000 dockworkers. About 50 cargo ships are anchored offshore, waiting to be unloaded.

"Ships are just stuck doing nothing; they're just losing money and at the same time schedules are going to pot," says Janet Porter, an editor with Lloyd's List, a shipping industry news provider.

The ongoing disruptions at the West Coast seaports are forcing companies to put on more ships and reroute them. That includes heading north to ports in British Columbia, Canada. Stephen Brown, the president of the Chamber of Shipping of B.C., says shipping companies already began diverting to ports in western Canada in May when negotiations between West Coast dockworkers and ship owners first began. He says that tailed off for a while when it looked like the negotiations were going well.

"And then about three months ago when the slowdown began, and ships became significantly delayed, then we saw another round of diversion to Canadian ports, to Vancouver and Prince Rupert," he says.

The problem is that Vancouver and Prince Rupert can't handle the volume of ports such as Los Angeles and Long Beach and so get congested. Canada also doesn't have the rail and road networks like those along the West Coast of the U.S., so it takes longer to move cargo once it's unloaded. There are other alternatives, such as ports in Mexico and along the Gulf Coast.

Brown says the U.S. East Coast ports are very busy with ships coming in from Asia via the Suez Canal. He says it takes a bit longer in terms of sailing distance. Also, freight rates — the cost to ship a container — are now higher on the East Coast because of the demand.

"But in terms of the costs that are being incurred in the delays, that additional freight rate doesn't seem to be the issue. It's more one of trying to get some sort of reliability out of the supply chain," he says.

Timothy Simpson, a communications director with shipping giant Maersk Line, says shipping companies have to try to take in every variable, such as bad weather or work slowdowns, that could affect the supply chain. He says it can be a guessing game.

"You have to look at what's happening today and how we're going to adjust. You know that's really the best way that we found to manage it," he says.

Copyright 2016 NPR. To see more, visit http://www.npr.org/.