task buffer resize