Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not save session on builder complete #8

Open
marcinus opened this issue Aug 25, 2020 · 0 comments
Open

Do not save session on builder complete #8

marcinus opened this issue Aug 25, 2020 · 0 comments

Comments

@marcinus
Copy link

In Cognifide, we usually have our groovy scripts controlled by DRY_RUN flag. When set to true, changes are not persisted by calling session.refresh(false), otherwise session.save() is called.

However, nodeCompleted function explicitely saves the session (see in code):

@Override
void nodeCompleted(parent, node) {
    session.save()

    currentNode = currentNode.parent
}

It would be great if this behaviour could be controlled (saving prevented), either by some global flag, or in builder's constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant