Chilean customs workers are returning to work after reaching a deal to end a nationwide strike that halted shipments causing losses for the fruit and salmon industries.

Customs workers began the stoppage May 20, demanding improvements in infrastructure and more staff over the next three years. Unions representing the workers reached a deal with the government Thursday.

The SalmonChile group said earlier this week that the strike had blocked exports of about 11 metric tons of salmon and caused more than $30 million in losses for the industry.

Chile's ASOEX fruit exporting association estimated $16 million in losses in fresh fruit due to shipping problems since the beginning of the strike.

Chile is the world's top copper producer and a major global exporter of wine, salmon and fruit.