Rulebreakers were not made to handle the corpses, instead leaving it to local health officials wearing full-body personal protective equipment due to the risk of being exposed to Covid-19.
A week ago, police also forced mask violaters to sit in a hearse containing a casket.
Inside the hearse, violators were asked to reflect on their actions. The task force also reminded them how the Covid-19 pandemic had taken a lot of lives.
Some 50 sellers and customers at Maron Market took turns to stay in the vehicle for several minutes on September 7 as a social punishment.
The task force also imposed several other forms of punishment.
"We ordered vendors to close down their shop for a week, confiscated violators' IDs for three months, and asked some of them to clean the market and open sewers," law enforcement co-ordinator Ugas Irwanto said.
According to figures from Johns Hopkins University, Indonesia has more than 221,000 Covid-19 cases and has had at least 8,800 deaths.