handle transaction, fix merging finished build request when the build is merge from a force build with same parameters