private boolean pendingGroupOpt(InlongGroupInfo groupInfo, String operator, GroupStatus status,
            int rerunProcess, int resetFinalStatus) {
        final String groupId = groupInfo.getInlongGroupId();
        if (rerunProcess == 1) {
            ProcessRequest processQuery = new ProcessRequest();
            processQuery.setInlongGroupId(groupId);
            List<WorkflowProcessEntity> entities = workflowQueryService.listProcessEntity(processQuery);
            entities.sort(Comparator.comparingInt(WorkflowProcessEntity::getId));
            WorkflowProcessEntity lastProcess = entities.get(entities.size() - 1);
            UserInfo userInfo = LoginUserUtils.getLoginUser();
            EXECUTOR_SERVICE.execute(
                    () -> workflowService.continueProcessAsync(lastProcess.getId(), userInfo, "Reset group status"));
            return true;
        }
        if (resetFinalStatus == 1) {
            GroupStatus finalStatus = getFinalStatus(status);
            return groupService.updateStatus(groupId, finalStatus.getCode(), operator);
        } else {
            return groupService.updateStatus(groupId, GroupStatus.CONFIG_FAILED.getCode(), operator);
        }
    }
Reset InlongGroup status when group is staying CONFIG_ING|SUSPENDING|RESTARTING|DELETING for a long time.
This api is side effect, must be used carefully.

@param request reset inlong group request
@param operator name of operator
@return success or false
inlong-manager/manager-service/src/main/java/org/apache/inlong/manager/service/group/InlongGroupProcessService.java