task: avoid MySQL server gone away errors