A California judge has decided not to impose a prison sentence on two boys whose bullying and sucker-punch attack led to the death of a 13-year-old classmate in 2019.

They had picked on the victim for years. The attack was caught on video, which circulated widely on social media. And they admitted to involuntary manslaughter in court after having their charges reduced from voluntary manslaughter.

But Riverside County Superior Court Judge Roger A. Luebs ordered each of the juveniles to serve 150 hours of community service, according to FOX 11 Los Angeles.

CALIFORNIA BOY, 13, COMPLAINED OF BULLYING AT SCHOOL DAYS BEFORE FATAL SUCKER PUNCH, ATTORNEY SAYS

"No custody time was ordered and the judge ordered each juvenile to do 150 hours of community service and also that they participate in various programs specifically tailored toward their rehabilitative needs," a spokesman for the Riverside County District Attorney’s Office confirmed to Fox News.

He said he could not comment further becauses the case involved minors but added that the juvenile court system had a focus on rehabilitation.

Diego Stolz, 13, was killed during a bullying incident on Sept. 16, 2019 at Landmark Middle School. (Gina Ferazzi/Los Angeles Times via Getty Images)

Diego Stolz, 13, was killed during a bullying incident on Sept. 16, 2019 at Landmark Middle School. (Gina Ferazzi/Los Angeles Times via Getty Images)

The two suspects, whose identities have been withheld because they are minors, had allegedly been bullying Diego Stolz since seventh grade at Landmark Middle School in Moreno Valley.

Video of the incident showed a significantly larger boy confronting Diego on school grounds. The victim has his hands at his sides when the first attacker punches him in the face. The second punches him from behind, and Diego loses his balance, falls and cracks his head on concrete.

He never regained consciousness and was taken off life support nine days later, according to family attorney Dave Ring.

The boy’s aunt had filed numerous complaints about bullying before the fatal attack, according to the FOX 11 report, and the family was told the boys would be suspended for a separate incident on the day of the attack.

But they were at school, and that had deadly results.

Both the principal, Scott Walker, and vice principal, Kamilah O’Connor, were later fired, and the family filed wrongful death litigation against the district.

Judge Luebs was first elected to the bench in 2002 and ran unopposed in three subsequent elections, records show.

CLICK HERE TO GET THE FOX NEWS APP

Probation officials had wanted the boys to serve time at a juvenile facility, according to FOX 11, but Luebs argued they were basing the request on public outrage rather than rehabilitation.

Luebs obtained and undergraduate degree from the University of California, Riverside, in 1974 and received his law degree from the University of California, Los Angeles School of Law in 1977, according to Trellis, a court transparency organization.