A man who unleashed a racist tirade against a grocery store cashier and customer in northeast Calgary has been sentenced to 12 months of probation and a mandatory anger management course.

Peter Simpson was handed a suspended sentence Tuesday and had to pay a $100 surcharge for threats to cause death and bodily harm.

In December, Simpson was at Real Canadian Superstore in Sunridge when an item he was purchasing was accidentally scanned twice.

Another customer, Steven Lemmon, caught him on video as he berated the cashier and another customer, shoving the other shopper and calling him a a "bomb-making motherf--ker."

Racist tirade 0:40

Lemmon said the cashier — who looked to be between 16 and 20 — immediately called his manager to fix the double-scanned item.

"Before the manager even got there, [the customer] began with just immediate racial attacks on the cashier. When the manager got there, it didn't stop. He continued the racial attack on the cashier. He threatened to rip his chain off and jam it down his throat. He called him out to the parking lot. This is a kid," Lemmon told CBC News after the incident happened.

​With files from David Bell