ckpt, add heartbeat and finish_app_master