Netflix / conductor-community

Apache License 2.0
61 stars 72 forks source link

[QUESTION]: why getWorkflow should be executed in transaction #157

Closed hebrd closed 1 year ago

hebrd commented 1 year ago

Can someone kindly help me understand why this should be transactional?

        WorkflowModel workflow = getWithRetriedTransactions(tx -> readWorkflow(tx, workflowId));

        if (workflow != null) {
            if (includeTasks) {
                List<TaskModel> tasks = getTasksForWorkflow(workflowId);
                tasks.sort(Comparator.comparingInt(TaskModel::getSeq));
                workflow.setTasks(tasks);
            }
        }
        return workflow;
    }
github-actions[bot] commented 1 year ago

This issue is stale, because it has been open for 45 days with no activity. Remove the stale label or comment, or this will be closed in 7 days.

github-actions[bot] commented 1 year ago

This issue was closed, because it has been stalled for 7 days with no activity.