fix pool max_active bug; fix dead worker process bug; add rebuild tasks on server load