add SGE and local test feature --SGE job finish dection