Updated by the batch_id to key instead pgid.
waitpid does not run automatically (in monbatch)