lib/src/main/java/edu/utexas/tacc/tapis/files/lib/services/ChildTaskTransferService.java
private TransferTaskChild chevronOne(@NotNull TransferTaskChild taskChild) throws ServiceException {
        log.info("***** DOING chevronOne ****");
        try {
            // Make sure it hasn't been cancelled already
            taskChild = dao.getTransferTaskChild(taskChild.getUuid());
            if (taskChild.isTerminal()) return taskChild;

            taskChild.setStatus(TransferTaskStatus.IN_PROGRESS);
            taskChild.setStartTime(Instant.now());
            dao.updateTransferTaskChild(taskChild);

            TransferTaskParent parentTask = dao.getTransferTaskParentById(taskChild.getParentTaskId());
            // If the parent task has not been set to IN_PROGRESS do it here.
            if (!parentTask.getStatus().equals(TransferTaskStatus.IN_PROGRESS)) {
                parentTask.setStatus(TransferTaskStatus.IN_PROGRESS);
                parentTask.setStartTime(Instant.now());
                dao.updateTransferTaskParent(parentTask);
            }

            return taskChild;
        } catch (DAOException ex) {
            throw new ServiceException(Utils.getMsg("FILES_TXFR_SVC_ERR1", taskChild.getTenantId(), taskChild.getUsername(),
                "chevronOne", taskChild.getId(), taskChild.getUuid(), ex.getMessage()), ex);
        }

    }
/**
     * Step one: We update the task's status and the parent task if necessary
     *
     * @param taskChild The child transfer task
     * @return Updated TransferTaskChild
     */
Step one: We update the task's status and the parent task if necessary
@param taskChild The child transfer task
@return Updated TransferTaskChild
Step one : We update the task ' s status and the parent task if necessary @param taskChild The child transfer task @return Updated TransferTaskChild
private TransferTaskChild chevronOne(@NotNull TransferTaskChild taskChild) throws ServiceException {
        log.info("***** DOING chevronOne ****");
        try {
            taskChild = dao.getTransferTaskChild(taskChild.getUuid());
            if (taskChild.isTerminal()) return taskChild;
            taskChild.setStatus(TransferTaskStatus.IN_PROGRESS);
            taskChild.setStartTime(Instant.now());
            dao.updateTransferTaskChild(taskChild);
            TransferTaskParent parentTask = dao.getTransferTaskParentById(taskChild.getParentTaskId());
            if (!parentTask.getStatus().equals(TransferTaskStatus.IN_PROGRESS)) {
                parentTask.setStatus(TransferTaskStatus.IN_PROGRESS);
                parentTask.setStartTime(Instant.now());
                dao.updateTransferTaskParent(parentTask);
            }
            return taskChild;
        } catch (DAOException ex) {
            throw new ServiceException(Utils.getMsg("FILES_TXFR_SVC_ERR1", taskChild.getTenantId(), taskChild.getUsername(),
                "chevronOne", taskChild.getId(), taskChild.getUuid(), ex.getMessage()), ex);
        }
    }
private TransferTaskChild chevronOne ( @ NotNull TransferTaskChild taskChild ) throws ServiceException { log . info ( "***** DOING chevronOne ****" ) ; try { taskChild = dao . getTransferTaskChild ( taskChild . getUuid ( ) ) ; if ( taskChild . isTerminal ( ) ) return taskChild ; taskChild . setStatus ( TransferTaskStatus . IN_PROGRESS ) ; taskChild . setStartTime ( Instant . now ( ) ) ; dao . updateTransferTaskChild ( taskChild ) ; TransferTaskParent parentTask = dao . getTransferTaskParentById ( taskChild . getParentTaskId ( ) ) ; if ( ! parentTask . getStatus ( ) . equals ( TransferTaskStatus . IN_PROGRESS ) ) { parentTask . setStatus ( TransferTaskStatus . IN_PROGRESS ) ; parentTask . setStartTime ( Instant . now ( ) ) ; dao . updateTransferTaskParent ( parentTask ) ; } return taskChild ; } catch ( DAOException ex ) { throw new ServiceException ( Utils . getMsg ( "FILES_TXFR_SVC_ERR1" , taskChild . getTenantId ( ) , taskChild . getUsername ( ) , "chevronOne" , taskChild . getId ( ) , taskChild . getUuid ( ) , ex . getMessage ( ) ) , ex ) ; } }
Step one: We update the task's status and the parent task if necessary
 @param taskChild The child transfer task
 @return Updated TransferTaskChild
Step one : We update the task ' s status and the parent task if necessary @param taskChild The child transfer task @return Updated TransferTaskChild
// Make sure it hasn't been cancelled already // If the parent task has not been set to IN_PROGRESS do it here.