damn_upkeep.generate.finished_areas

async damn_upkeep.generate.finished_areas()

Write areas with priority -10 to files, remove them from db.

This procedure can be improved/fixed by calling the database queries in finish_area procedure in single serializable transaction. Currently, it is technically possible to update the area and/or add commits to the area during the execution of the finish_area procedure. However, updating area during finish_area procedure execution is highly unlikely.