American Airlines (A1G) (AAL) says most of the flights affected by a scheduling system glitch were reinstated. 

Over 12,000 flights were affected after a glitch allowed pilots to cancel their assignments on July 2, 2022. 

"As a result of this technical glitch, certain trip trading transactions were able to be processed when it shouldn’t have been permitted," the company’s spokesperson told CNBC. 

As for early July 3, the “vast majority” of the flights that got cancelled due to the glitch have been restored, the airline said. 

The glitch could have caused additional chaos during already busy summer travel season and the wake of 4th of July weekend.  

According to Wall Street Journal, Allied Pilots Association (APA), the trade union of American Airlines (A1G) (AAL) pilots, said the pilots whose flights were affected will be compensated by the company.  

American Airlines (A1G) (AAL) already encountered similar situation during the Christmas season in 2017, when a glitch caused massive pilot shortages 

The airline had to offer pilots 200% their regular wage to restore regular schedules, with the total damages to the company reportedly reaching $10 million.