Skip to content

Support transient but not terminated by user errors in retry - #156

Merged
zhenlineo merged 3 commits into
neo4j:1.2from
zhenlineo:1.2-not-retry-on-user-canceled-tx
Apr 27, 2017
Merged

Support transient but not terminated by user errors in retry#156
zhenlineo merged 3 commits into
neo4j:1.2from
zhenlineo:1.2-not-retry-on-user-canceled-tx

Conversation

@zhenlineo

@zhenlineo zhenlineo commented Apr 24, 2017

Copy link
Copy Markdown
Contributor

No description provided.

@zhenlineo
zhenlineo force-pushed the 1.2-not-retry-on-user-canceled-tx branch from d96c30e to 20d5280 Compare April 24, 2017 13:10
Comment thread neo4j/v1/api.py Outdated
"""
:type error: TransientError
"""
if (error.code != "Neo.TransientError.Transaction.Terminated"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return error.code in ("error1", "error2")

@zhenlineo
zhenlineo merged commit 370d60b into neo4j:1.2 Apr 27, 2017
@zhenlineo
zhenlineo deleted the 1.2-not-retry-on-user-canceled-tx branch April 27, 2017 07:58
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

Successfully merging this pull request may close these issues.

1 participant