Sync task status with Jenkins when restart sys.